[master] 14ee00a Initialize fd to -1 to catch bugs
Poul-Henning Kamp
phk at FreeBSD.org
Tue Jun 21 15:30:12 CEST 2016
commit 14ee00a1e1ce29143e4eaa6ac697e1b5981e27cc
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Jun 21 13:29:36 2016 +0000
Initialize fd to -1 to catch bugs
diff --git a/bin/varnishd/cache/cache_req.c b/bin/varnishd/cache/cache_req.c
index 72c3d95..c06c10d 100644
--- a/bin/varnishd/cache/cache_req.c
+++ b/bin/varnishd/cache/cache_req.c
@@ -68,6 +68,7 @@ Req_New(const struct worker *wrk, struct sess *sp)
req->top = req; // esi overrides
INIT_OBJ(req->htc, HTTP_CONN_MAGIC);
+ req->htc->fd = -1;
e = (char*)req + sz;
p = (char*)(req + 1);
More information about the varnish-commit
mailing list