[master] 4354c58cc Check if bo->htc is there, like in the rest of the function
Poul-Henning Kamp
phk at FreeBSD.org
Mon Sep 5 11:28:06 UTC 2022
commit 4354c58cc7905eab616bc97444a4abd656371250
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Sep 5 11:26:45 2022 +0000
Check if bo->htc is there, like in the rest of the function
diff --git a/bin/varnishd/cache/cache_fetch.c b/bin/varnishd/cache/cache_fetch.c
index b9be6f4a1..ffbc893fc 100644
--- a/bin/varnishd/cache/cache_fetch.c
+++ b/bin/varnishd/cache/cache_fetch.c
@@ -488,7 +488,7 @@ vbf_stp_startfetch(struct worker *wrk, struct busyobj *bo)
if (http_IsStatus(bo->beresp, 304) && vbf_304_logic(bo) < 0)
return (F_STP_ERROR);
- if (bo->htc->doclose == SC_NULL &&
+ if (bo->htc != NULL && bo->htc->doclose == SC_NULL &&
http_GetHdrField(bo->bereq, H_Connection, "close", NULL))
bo->htc->doclose = SC_REQ_CLOSE;
More information about the varnish-commit
mailing list