From: Michael R Sweet Date: Mon, 7 Jun 2021 11:51:26 +0000 (-0400) Subject: Make sure Windows socket stuff is initialized before calling getaddrinfo... X-Git-Tag: v2.4b1~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00e46e36e8ba4cbd7ba8e39664b74aa7c87c6b1b;p=thirdparty%2Fcups.git Make sure Windows socket stuff is initialized before calling getaddrinfo... --- diff --git a/cups/http-addrlist.c b/cups/http-addrlist.c index 56380cb925..dbe08d551c 100644 --- a/cups/http-addrlist.c +++ b/cups/http-addrlist.c @@ -518,6 +518,8 @@ httpAddrGetList(const char *hostname, /* I - Hostname, IP address, or NULL for p family == AF_INET ? "INET" : "???", service); #endif /* DEBUG */ + httpInitialize(); + #ifdef HAVE_RES_INIT /* * STR #2920: Initialize resolver after failure in cups-polld