]> err.no Git - varnish/commitdiff
Fix assert in thread_close() for fd == nthreads == 0.
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 17 Feb 2008 10:02:07 +0000 (10:02 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 17 Feb 2008 10:02:07 +0000 (10:02 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2500 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishreplay/varnishreplay.c

index a7ec74c4b2b1d84718c93cfb1f7a28110a25a883..204709bca3eb06ae36dd2cf7939b7b7d163374aa 100644 (file)
@@ -196,7 +196,7 @@ static void
 thread_close(int fd)
 {
 
-       assert(fd < nthreads);
+       assert(fd == 0 || fd < nthreads);
        if (fd == 0) {
                for (fd = 1; fd < nthreads; ++fd)
                        thread_close(fd);