Fix return status

parent 1c40353e
......@@ -613,7 +613,7 @@ vdp_zipflow_init(VRT_CTX, struct vdp_ctx *vdc, void **priv, struct objcore *oc)
if (zft->req) {
VSLb(vdc->vsl, SLT_Error, "zipflow: can't be nested");
return (1);
return (-1);
}
if (vdc->req->resp_len == 0) {
......@@ -627,7 +627,7 @@ vdp_zipflow_init(VRT_CTX, struct vdp_ctx *vdc, void **priv, struct objcore *oc)
if (zft->zis == NULL) {
VSLb(vdc->vsl, SLT_Error, "zipflow: workspace "
"overflow for body_resp");
return (1);
return (-1);
}
zft->zis->zft = zft;
zft->zis->func = zfr_iter_include;
......@@ -640,7 +640,7 @@ vdp_zipflow_init(VRT_CTX, struct vdp_ctx *vdc, void **priv, struct objcore *oc)
zft->zip = zip_pipe(vdc, vdp_zipflow_put, zfr->level);
if (zft->zip == NULL) {
VSLb(vdc->vsl, SLT_Error, "zipflow: zip_pipe failed");
return (1);
return (-1);
}
AZ(zip_log(zft->zip, vdc->vsl, vdp_zipflow_log));
......
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