Commit bb79466d authored by Federico G. Schwindt's avatar Federico G. Schwindt

Remove dead code

Spotted by coverity.
parent 89619adb
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment