[master] 33c9692f1 Polish

Federico G. Schwindt fgsch at lodoss.net
Mon Jul 1 11:06:07 UTC 2019


commit 33c9692f11128c8df03c9284ac599f9f725a5ecf
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Mon Jul 1 11:15:54 2019 +0100

    Polish

diff --git a/bin/varnishtest/vtc_main.c b/bin/varnishtest/vtc_main.c
index a65c26df9..ac21b1000 100644
--- a/bin/varnishtest/vtc_main.c
+++ b/bin/varnishtest/vtc_main.c
@@ -569,8 +569,8 @@ ip_magic(void)
 	sa = VSS_ResolveOne(NULL, "127.0.0.1", "0", 0, SOCK_STREAM, 0);
 	AN(sa);
 	bad_backend_fd = VTCP_bind(sa, NULL);
-	free(sa);
 	assert(bad_backend_fd >= 0);
+	free(sa);
 	VTCP_myname(bad_backend_fd, abuf, sizeof abuf, pbuf, sizeof(pbuf));
 	extmacro_def("localhost", "%s", abuf);
 


More information about the varnish-commit mailing list