[experimental-ims] 900920c Terminate when -r reached EOF
Geoff Simmons
geoff at varnish-cache.org
Mon Jan 9 21:52:41 CET 2012
commit 900920c301449ac631518f0da3e1830401603c56
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Nov 21 09:13:08 2011 +0000
Terminate when -r reached EOF
diff --git a/lib/libvarnishapi/vsl.c b/lib/libvarnishapi/vsl.c
index 3e7eb40..e1ace33 100644
--- a/lib/libvarnishapi/vsl.c
+++ b/lib/libvarnishapi/vsl.c
@@ -153,7 +153,7 @@ vsl_nextlog(struct vsl *vsl, uint32_t **pp)
assert(vsl->rbuflen >= 8);
i = read(vsl->r_fd, vsl->rbuf, 8);
if (i == 0)
- return (0);
+ return (-1);
if (i != 8)
return (-1);
l = 2 + VSL_WORDS(VSL_LEN(vsl->rbuf));
More information about the varnish-commit
mailing list