From: simon Date: Fri, 5 Jan 2007 18:43:58 +0000 (+0000) Subject: Francois L'Archeveque spotted that the variable `winsock2_module' X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/b72210b4ea15082225a2546a1175dd0f6389c3f3 Francois L'Archeveque spotted that the variable `winsock2_module' only exists when compiling for IPv6, so we shouldn't try assigning to it the rest of the time. git-svn-id: svn://svn.tartarus.org/sgt/putty@7059 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/windows/winnet.c b/windows/winnet.c index 1c574e31..f8838bec 100644 --- a/windows/winnet.c +++ b/windows/winnet.c @@ -205,7 +205,10 @@ int sk_startup(int hi, int lo) void sk_init(void) { - winsock2_module = winsock_module = LoadLibrary("WS2_32.DLL"); +#ifndef NO_IPV6 + winsock2_module = +#endif + winsock_module = LoadLibrary("WS2_32.DLL"); if (!winsock_module) { winsock_module = LoadLibrary("WSOCK32.DLL"); }