r2492 - trunk/varnish-cache/bin/varnishreplay

des at projects.linpro.no des at projects.linpro.no
Sun Feb 17 09:53:01 CET 2008


Author: des
Date: 2008-02-17 09:53:01 +0100 (Sun, 17 Feb 2008)
New Revision: 2492

Modified:
   trunk/varnish-cache/bin/varnishreplay/varnishreplay.c
Log:
Request is bogus if df_m, df_Uq or df_H are NULL (Coverity CID#2, CID#3)


Modified: trunk/varnish-cache/bin/varnishreplay/varnishreplay.c
===================================================================
--- trunk/varnish-cache/bin/varnishreplay/varnishreplay.c	2008-02-16 11:03:37 UTC (rev 2491)
+++ trunk/varnish-cache/bin/varnishreplay/varnishreplay.c	2008-02-17 08:53:01 UTC (rev 2492)
@@ -521,6 +521,9 @@
 		if (tag != SLT_ReqEnd)
 			continue;
 
+		if (!df_m || !df_Uq || !df_H)
+			bogus = 1;
+
 		if (bogus) {
 			thread_log(1, "bogus\n");
 		} else {




More information about the varnish-commit mailing list