From 13874a7c4dd056a4db43fb60075075fc73d8abc4 Mon Sep 17 00:00:00 2001 From: jacob Date: Fri, 21 Aug 2009 20:05:24 +0000 Subject: [PATCH] Corey Stup points out that any attempt to display the message "Unable to load 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/windows/winnet.c b/windows/winnet.c index bcfc004d..a839dfc1 100644 --- a/windows/winnet.c +++ b/windows/winnet.c @@ -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 -- 2.11.0