[master] 475dbed Un-confuse flexelint

Guillaume Quintard guillaume at varnish-software.com
Thu Sep 8 12:22:12 CEST 2016


commit 475dbed976d2ccb6bfaecc3f21f3702bcc147100
Author: Guillaume Quintard <guillaume at varnish-software.com>
Date:   Thu Sep 8 12:11:41 2016 +0200

    Un-confuse flexelint

diff --git a/bin/varnishtest/vtc_http2.c b/bin/varnishtest/vtc_http2.c
index 4b1f549..c7ca7ee 100644
--- a/bin/varnishtest/vtc_http2.c
+++ b/bin/varnishtest/vtc_http2.c
@@ -663,7 +663,7 @@ parse_goaway(const struct stream *s, struct frame *f)
 		err_buf = "unknown";
 
 	if (f->size > 8) {
-		f->md.goaway.debug = malloc(f->size - 8 + 1L);
+		f->md.goaway.debug = malloc((f->size - 8) + 1L);
 		AN(f->md.goaway.debug);
 		f->md.goaway.debug[f->size - 8] = '\0';
 



More information about the varnish-commit mailing list