[master] 3c77f50 Log what we actually tried to use
Federico G. Schwindt
fgsch at lodoss.net
Sun Apr 9 04:41:05 CEST 2017
commit 3c77f500e06859063f0e28ab595d6452fc799b5f
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Sun Apr 9 11:38:56 2017 +0900
Log what we actually tried to use
diff --git a/bin/varnishd/cache/cache_http.c b/bin/varnishd/cache/cache_http.c
index d18ca52..62d98bd 100644
--- a/bin/varnishd/cache/cache_http.c
+++ b/bin/varnishd/cache/cache_http.c
@@ -1210,8 +1210,9 @@ http_PrintfHeader(struct http *to, const char *fmt, ...)
va_end(ap);
if (n + 1 >= l || to->nhd >= to->shd) {
http_fail(to);
- VSLb(to->vsl, SLT_LostHeader, "%s",
- n + 1 >= l ? fmt : to->ws->f);
+ va_start(ap, fmt);
+ VSLbv(to->vsl, SLT_LostHeader, fmt, ap);
+ va_end(ap);
WS_Release(to->ws, 0);
return;
}
More information about the varnish-commit
mailing list