[master] bb79466 Remove dead code
Federico G. Schwindt
fgsch at lodoss.net
Wed Feb 15 01:57:05 CET 2017
commit bb79466d1c8675ec22385d36394ebaa209f01232
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Wed Feb 15 00:55:23 2017 +0000
Remove dead code
Spotted by coverity.
diff --git a/bin/varnishd/http2/cache_http2_hpack.c b/bin/varnishd/http2/cache_http2_hpack.c
index 16bf33c..59d9468 100644
--- a/bin/varnishd/http2/cache_http2_hpack.c
+++ b/bin/varnishd/http2/cache_http2_hpack.c
@@ -94,8 +94,7 @@ h2h_addhdr(struct http *hp, char *b, size_t namelen, size_t len)
assert(namelen <= len);
if (len > UINT_MAX) { /* XXX: cache_param max header size */
- VSLb(hp->vsl, SLT_BogoHeader, "Header too large: %.*s",
- (int)(len > 20 ? 20 : len), b);
+ VSLb(hp->vsl, SLT_BogoHeader, "Header too large: %.20s", b);
return (H2E_ENHANCE_YOUR_CALM);
}
More information about the varnish-commit
mailing list