Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Check the VPF return values
  • Loading branch information
bsdphk committed Apr 28, 2017
1 parent 12f71d4 commit d27e908
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/libvarnishapi/vut.c
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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));
}
}
Expand Down

0 comments on commit d27e908

Please sign in to comment.