Permalink
Browse files

Remove dead code

Spotted by coverity.
  • Loading branch information...
1 parent 89619ad commit bb79466d1c8675ec22385d36394ebaa209f01232 @fgsch fgsch committed Feb 15, 2017
Showing with 1 addition and 2 deletions.
  1. +1 −2 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);
}

0 comments on commit bb79466

Please sign in to comment.