[master] 416234dc7 Fix vtc feature abstract_uds

Nils Goroll nils.goroll at uplex.de
Mon Nov 21 17:41:05 UTC 2022


commit 416234dc744d38bf4650b48b6ab669bc18dcd6fc
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Mon Nov 21 18:40:02 2022 +0100

    Fix vtc feature abstract_uds

diff --git a/bin/varnishtest/vtc_misc.c b/bin/varnishtest/vtc_misc.c
index 10875ecd9..78ec28464 100644
--- a/bin/varnishtest/vtc_misc.c
+++ b/bin/varnishtest/vtc_misc.c
@@ -419,8 +419,7 @@ static int
 uds_socket(void *priv, const struct sockaddr_un *uds)
 {
 
-	(void) priv;
-	return (socket(uds->sun_family, SOCK_STREAM, 0));
+	return (VUS_bind(uds, priv));
 }
 static int
 abstract_uds_works(void)
@@ -431,7 +430,7 @@ abstract_uds_works(void)
 	fd = VUS_resolver("@vtc.feature.abstract_uds", uds_socket, NULL, &err);
 	if (fd < 0)
 		return (0);
-	close(fd);
+	AZ(close(fd));
 	return (1);
 }
 


More information about the varnish-commit mailing list