[6.0] 7f661b11a Use VTCP_Assert() also in VTCP_close()

Reza Naghibi reza at naghibi.com
Thu Apr 22 15:55:06 UTC 2021


commit 7f661b11ad19831211cbf4a3b412ba8dd92613ee
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 85bac3979..eaf075c9a 100644
--- a/lib/libvarnish/vtcp.c
+++ b/lib/libvarnish/vtcp.c
@@ -342,7 +342,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