]> err.no Git - varnish/commitdiff
The correct return value when we reach the end is -1, not 0.
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 30 Jun 2008 01:44:33 +0000 (01:44 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 30 Jun 2008 01:44:33 +0000 (01:44 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2862 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvarnishapi/shmlog.c

index 6b35d0eb1273c66aac9fab3a7736768297233b53..ef17080bf546f8f72d92581c973afab4c1b3ccb8 100644 (file)
@@ -300,7 +300,7 @@ VSL_NextLog(struct VSL_data *vd, unsigned char **pp)
                        continue;
                } else if (vd->keep) {
                        if (--vd->keep == 0)
-                               return (0);
+                               return (-1);
                }
                if (vd->map[p[SHMLOG_TAG]] & M_SELECT) {
                        *pp = p;