r2500 - trunk/varnish-cache/bin/varnishreplay

des at projects.linpro.no des at projects.linpro.no
Sun Feb 17 11:02:07 CET 2008


Author: des
Date: 2008-02-17 11:02:07 +0100 (Sun, 17 Feb 2008)
New Revision: 2500

Modified:
   trunk/varnish-cache/bin/varnishreplay/varnishreplay.c
Log:
Fix assert in thread_close() for fd == nthreads == 0.


Modified: trunk/varnish-cache/bin/varnishreplay/varnishreplay.c
===================================================================
--- trunk/varnish-cache/bin/varnishreplay/varnishreplay.c	2008-02-17 09:32:50 UTC (rev 2499)
+++ trunk/varnish-cache/bin/varnishreplay/varnishreplay.c	2008-02-17 10:02:07 UTC (rev 2500)
@@ -196,7 +196,7 @@
 thread_close(int fd)
 {
 
-	assert(fd < nthreads);
+	assert(fd == 0 || fd < nthreads);
 	if (fd == 0) {
 		for (fd = 1; fd < nthreads; ++fd)
 			thread_close(fd);




More information about the varnish-commit mailing list