[master] 21956d6c2 Pass correct args to VSS_ResolveOne

Poul-Henning Kamp phk at FreeBSD.org
Thu May 30 14:53:10 UTC 2019


commit 21956d6c2ec6067939cbeffe5f7789a8d09c9af8
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu May 30 13:33:04 2019 +0000

    Pass correct args to VSS_ResolveOne

diff --git a/bin/varnishtest/vtc_misc.c b/bin/varnishtest/vtc_misc.c
index 8009820e4..d2c897f46 100644
--- a/bin/varnishtest/vtc_misc.c
+++ b/bin/varnishtest/vtc_misc.c
@@ -29,6 +29,7 @@
 #include "config.h"
 
 #include <sys/wait.h>
+#include <sys/socket.h>
 
 #include <grp.h>
 #include <math.h>
@@ -351,7 +352,7 @@ dns_works(void)
 	char abuf[VTCP_ADDRBUFSIZE];
 	char pbuf[VTCP_PORTBUFSIZE];
 
-	sa = VSS_ResolveOne(NULL, "dns-canary.freebsd.dk", NULL, 0, 0, 0);
+	sa = VSS_ResolveOne(NULL, "dns-canary.freebsd.dk", NULL, AF_UNSPEC, SOCK_STREAM, 0);
 	if (sa == NULL)
 		return (0);
 	VTCP_name(sa, abuf, sizeof abuf, pbuf, sizeof pbuf);


More information about the varnish-commit mailing list