[master] 4b33a2f Fix buglet
Poul-Henning Kamp
phk at varnish-cache.org
Fri Sep 6 23:50:45 CEST 2013
commit 4b33a2fcd28d1ba3d4ab254150c661bdd2d08ec2
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Fri Sep 6 16:44:04 2013 +0000
Fix buglet
diff --git a/bin/varnishd/cache/cache_http1_deliver.c b/bin/varnishd/cache/cache_http1_deliver.c
index d20e90b..2b55efd 100644
--- a/bin/varnishd/cache/cache_http1_deliver.c
+++ b/bin/varnishd/cache/cache_http1_deliver.c
@@ -77,8 +77,10 @@ v1d_range_bytes(struct req *req, enum vdp_action act, const void *ptr,
l = req->range_high - req->range_off;
if (l > len)
l = len;
- if (act > VDP_NULL || l > 0)
+ if (l > 0)
retval = VDP_bytes(req, act, p, l);
+ else if (act > VDP_NULL)
+ retval = VDP_bytes(req, act, p, 0);
req->range_off += len;
return (retval);
}
More information about the varnish-commit
mailing list