[master] 3648ab627 Missing null check

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Tue Apr 30 07:56:07 UTC 2019


commit 3648ab6273687f0b9df0ea0e263c6a182370d313
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Tue Apr 30 09:46:42 2019 +0200

    Missing null check
    
    Spotted by Coverity Scan.

diff --git a/bin/varnishtest/vtc_http2.c b/bin/varnishtest/vtc_http2.c
index 41baa8803..42006ef3d 100644
--- a/bin/varnishtest/vtc_http2.c
+++ b/bin/varnishtest/vtc_http2.c
@@ -1518,6 +1518,7 @@ cmd_tx11obj(CMD_ARGS)
 		else if (CMD_IS("txreq") || CMD_IS("txresp")) {
 			if (AV_IS("-body")) {
 				AZ(body);
+				AN(av[1]);
 				REPLACE(body, av[1]);
 				AN(body);
 				bodylen = strlen(body);


More information about the varnish-commit mailing list