gsoap/ai_default.diff

23 lines
917 B
Diff

From: Jan Engelhardt <jengelh@inai.de>
Date: 2018-11-13 00:49:28.201279291 +0100
References: https://sourceforge.net/p/gsoap2/bugs/1223/
There is no such thing as AI_DEFAULT.
---
gsoap/stdsoap2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: gsoap-2.8.71/gsoap/stdsoap2.c
===================================================================
--- gsoap-2.8.71.orig/gsoap/stdsoap2.cpp
+++ gsoap-2.8.71/gsoap/stdsoap2.cpp
@@ -6697,7 +6697,7 @@ soap_accept(struct soap *soap)
memset(&hints, 0, sizeof(struct addrinfo));
hints.ai_family = PF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
- hints.ai_flags = AI_DEFAULT | AI_NUMERICHOST | AI_NUMERICSERV;
+ hints.ai_flags = AI_NUMERICHOST | AI_NUMERICSERV;
getnameinfo(&soap->peer.addr, n, soap->host, sizeof(soap->host), port, sizeof(port), NI_NUMERICHOST | NI_NUMERICSERV);
soap->ip = 0;
soap->ip6[0] = 0;