[master] 919af66 Fix a tiny mistake introduced in 053c93cd12f

Dag Haavi Finstad daghf at varnish-software.com
Tue Oct 3 15:42:06 UTC 2017


commit 919af666ad5f45ff5d2a9451767871c7a6d26b5b
Author: Dag Haavi Finstad <daghf at varnish-software.com>
Date:   Tue Oct 3 17:41:12 2017 +0200

    Fix a tiny mistake introduced in 053c93cd12f

diff --git a/bin/varnishd/http2/cache_http2_proto.c b/bin/varnishd/http2/cache_http2_proto.c
index 1bc22b7..e3da09f 100644
--- a/bin/varnishd/http2/cache_http2_proto.c
+++ b/bin/varnishd/http2/cache_http2_proto.c
@@ -831,7 +831,7 @@ h2_procframe(struct worker *wrk, struct h2_sess *h2,
 	}
 
 	if (h2->new_req != NULL &&
-	    !(h2->new_req == r2->req && h2f == H2_F_CONTINUATION))
+	    !(r2 && h2->new_req == r2->req && h2f == H2_F_CONTINUATION))
 		return (H2CE_PROTOCOL_ERROR);	// rfc7540,l,1859,1863
 
 


More information about the varnish-commit mailing list