Fix return status

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