[master] b89a495 Set the bogo-IP's socket type to SOCK_STREAM, to assuage Solaris.

Geoff Simmons geoff at uplex.de
Thu Feb 22 15:11:08 UTC 2018


commit b89a4959651b66751f9a952da766282a0bdc6180
Author: Geoff Simmons <geoff at uplex.de>
Date:   Thu Feb 22 16:09:38 2018 +0100

    Set the bogo-IP's socket type to SOCK_STREAM, to assuage Solaris.

diff --git a/lib/libvarnish/vsa.c b/lib/libvarnish/vsa.c
index 1fc496f..1c05520 100644
--- a/lib/libvarnish/vsa.c
+++ b/lib/libvarnish/vsa.c
@@ -191,6 +191,7 @@ VSA_Init()
 	memset(&hints, 0, sizeof(hints));
 	hints.ai_family = AF_INET;
 	hints.ai_flags = AI_NUMERICHOST | AI_NUMERICSERV;
+	hints.ai_socktype = SOCK_STREAM;
 	AZ(getaddrinfo("0.0.0.0", "0", &hints, &res));
 	AN(VSA_Build(&bogo_ip_vsa, res->ai_addr, res->ai_addrlen));
 	assert(VSA_Sane(bogo_ip));


More information about the varnish-commit mailing list