[master] 9e1e0972c Polish

Federico G. Schwindt fgsch at lodoss.net
Wed Apr 10 22:42:07 UTC 2019


commit 9e1e0972c47c5ea03350c39c76370ccafd678802
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Wed Apr 10 23:35:45 2019 +0100

    Polish

diff --git a/bin/varnishd/http2/cache_http2_hpack.c b/bin/varnishd/http2/cache_http2_hpack.c
index 85d374269..0b4b3f78d 100644
--- a/bin/varnishd/http2/cache_http2_hpack.c
+++ b/bin/varnishd/http2/cache_http2_hpack.c
@@ -141,7 +141,7 @@ h2h_addhdr(struct http *hp, char *b, size_t namelen, size_t len)
 
 	if (n < HTTP_HDR_FIRST) {
 		/* Check for duplicate pseudo-header */
-		if (n < HTTP_HDR_FIRST && hp->hd[n].b != NULL) {
+		if (hp->hd[n].b != NULL) {
 			VSLb(hp->vsl, SLT_BogoHeader,
 			    "Duplicate pseudo-header: %.*s",
 			    (int)(len > 20 ? 20 : len), b);


More information about the varnish-commit mailing list