Commit ccbe1ee6 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

The correct return value when we reach the end is -1, not 0.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2862 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 9eef2a45
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment