[master] c3ebd58cb fix return value of vtc.workspace_reserve

Nils Goroll nils.goroll at uplex.de
Mon Jan 20 12:41:06 UTC 2020


commit c3ebd58cbb06317b18045d9f770510c39ccc3a2a
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Mon Jan 20 12:43:47 2020 +0100

    fix return value of vtc.workspace_reserve

diff --git a/lib/libvmod_vtc/vmod_vtc.c b/lib/libvmod_vtc/vmod_vtc.c
index cb3e3a19e..6bb31ba55 100644
--- a/lib/libvmod_vtc/vmod_vtc.c
+++ b/lib/libvmod_vtc/vmod_vtc.c
@@ -193,7 +193,7 @@ vmod_workspace_reserve(VRT_CTX, VCL_ENUM which, VCL_INT size)
 	if (r == 0)
 		return (0);
 	WS_Release(ws, 0);
-	return (1);
+	return (r);
 }
 
 VCL_INT v_matchproto_(td_vtc_workspace_free)


More information about the varnish-commit mailing list