]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Corey Stup points out that any attempt to display the message "Unable to load
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Fri, 21 Aug 2009 20:05:24 +0000 (20:05 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Fri, 21 Aug 2009 20:05:24 +0000 (20:05 +0000)
any WinSock library" will lead to a segfault.

[originally from svn r8625]

windows/winnet.c

index bcfc004d90383f8e3e93230f1f036a2aada732f7..a839dfc1f69e4edd8321463ff9fc9a58032d9cbc 100644 (file)
@@ -335,7 +335,8 @@ void sk_cleanup(void)
        sktree = NULL;
     }
 
-    p_WSACleanup();
+    if (p_WSACleanup)
+       p_WSACleanup();
     if (winsock_module)
        FreeLibrary(winsock_module);
 #ifndef NO_IPV6