[master] 0954500dc Use VTCP_Assert() also in VTCP_close()
Martin Blix Grydeland
martin at varnish-software.com
Mon Nov 9 15:13:08 UTC 2020
commit 0954500dcf1e302e60c479d0f2a0e573092f5228
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date: Wed Oct 7 14:35:23 2020 +0200
Use VTCP_Assert() also in VTCP_close()
Consistently use VTCP_Assert when asserting on the result of VTCP_Check().
diff --git a/lib/libvarnish/vtcp.c b/lib/libvarnish/vtcp.c
index bdd5d4e53..45f1c98b7 100644
--- a/lib/libvarnish/vtcp.c
+++ b/lib/libvarnish/vtcp.c
@@ -344,7 +344,7 @@ VTCP_close(int *s)
i = close(*s);
- assert(VTCP_Check(i));
+ VTCP_Assert(i);
*s = -1;
}
More information about the varnish-commit
mailing list