[master] e059f3f66 ws: Polish

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Mon Oct 25 05:32:06 UTC 2021


commit e059f3f6647a9a7847b82d1ef20691235dbab195
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Mon Oct 25 07:31:15 2021 +0200

    ws: Polish

diff --git a/bin/varnishd/cache/cache_ws.c b/bin/varnishd/cache/cache_ws.c
index 02a3a867c..c709817e1 100644
--- a/bin/varnishd/cache/cache_ws.c
+++ b/bin/varnishd/cache/cache_ws.c
@@ -146,14 +146,14 @@ WS_ReqPipeline(struct ws *ws, const void *b, const void *e)
 	else
 		AZ(b);
 
+	r = WS_ReserveAll(ws);
+
 	if (b == NULL) {
 		AZ(e);
-		(void)WS_ReserveAll(ws);
 		return (0);
 	}
 
 	AN(e);
-	r = WS_ReserveAll(ws);
 	l = pdiff(b, e);
 	assert(l <= r);
 	memmove(ws->f, b, l);


More information about the varnish-commit mailing list