Corey Stup points out that any attempt to display the message "Unable to load
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Fri, 21 Aug 2009 20:05:24 +0000 (20:05 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Fri, 21 Aug 2009 20:05:24 +0000 (20:05 +0000)
any WinSock library" will lead to a segfault.

git-svn-id: svn://svn.tartarus.org/sgt/putty@8625 cda61777-01e9-0310-a592-d414129be87e

windows/winnet.c

index bcfc004..a839dfc 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