[master] d27e908 Check the VPF return values

Poul-Henning Kamp phk at FreeBSD.org
Fri Apr 28 09:42:05 CEST 2017


commit d27e9083036c84164034340c7f1ec3e0f25d3c51
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Fri Apr 28 07:40:53 2017 +0000

    Check the VPF return values

diff --git a/lib/libvarnishapi/vut.c b/lib/libvarnishapi/vut.c
index 3fd66ef..f69528c 100644
--- a/lib/libvarnishapi/vut.c
+++ b/lib/libvarnishapi/vut.c
@@ -66,7 +66,7 @@ static void
 vut_vpf_remove(void)
 {
 	if (VUT.pfh) {
-		VPF_Remove(VUT.pfh);
+		AZ(VPF_Remove(VUT.pfh));
 		VUT.pfh = NULL;
 	}
 }
@@ -326,7 +326,7 @@ VUT_Setup(void)
 
 	/* Write PID and setup exit handler */
 	if (VUT.pfh != NULL) {
-		VPF_Write(VUT.pfh);
+		AZ(VPF_Write(VUT.pfh));
 		AZ(atexit(vut_vpf_remove));
 	}
 }



More information about the varnish-commit mailing list