Skip to content

Commit

Permalink
Minor polish
Browse files Browse the repository at this point in the history
  • Loading branch information
bsdphk committed Sep 20, 2017
1 parent 097c562 commit c70284d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions bin/varnishd/cache/cache_fetch_proc.c
Expand Up @@ -43,7 +43,7 @@ static unsigned fetchfrag;
*
* Other code is allowed to look at busyobj->fetch_failed to bail out
*
* For convenience, always return -1
* For convenience, always return VFP_ERROR
*/

enum vfp_status
Expand Down Expand Up @@ -176,14 +176,13 @@ VFP_Suck(struct vfp_ctx *vc, void *p, ssize_t *lp)
vp = VFP_Suck(vc, p, lp);
} else if (vfe->closed == VFP_OK) {
vp = vfe->vfp->pull(vc, vfe, p, lp);
if (vp != VFP_OK && vp != VFP_END && vp != VFP_ERROR) {
(void)VFP_Error(vc, "Fetch filter %s returned %d",
if (vp != VFP_OK && vp != VFP_END && vp != VFP_ERROR)
vp = VFP_Error(vc, "Fetch filter %s returned %d",
vfe->vfp->name, vp);
vp = VFP_ERROR;
}
else
vfe->bytes_out += *lp;
vfe->closed = vp;
vfe->calls++;
vfe->bytes_out += *lp;
} else {
/* Already closed filter */
*lp = 0;
Expand Down

0 comments on commit c70284d

Please sign in to comment.