Nmap Development mailing list archives
Re: [Patch] nsock/tests/tests_main.c
From: "Gisle Vanem" <gvanem () yahoo no>
Date: Sun, 10 Aug 2014 14:23:39 +0200
"Henri Doreau" <henri.doreau () gmail com> wrote:
Thanks, fixed in r31734 (using a slightly different patch though).
Exactly 1 year has gone since the last message in this thread. Now is the time for this function to be fixed. The win_init() function I contributed was applied wrong:
--- orig/nsock/tests/tests_main.c 2014-06-25 10:48:30 +0000 +++ nsock/tests/tests_main.c 2014-06-25 11:49:42 +0000 @@ -81,8 +81,8 @@ #ifdef WIN32 static int win_init(void) { WSADATA data; + int rc = WSAStartup(MAKEWORD(2, 2), &data); - rc = WSAStartup(MAKEWORD(2, 2), &data); if (rc) fatal("Failed to start winsock: %s\n", socket_strerror(rc)); --gv _______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Re: [Patch] nsock/tests/tests_main.c Gisle Vanem (Aug 10)
- Re: [Patch] nsock/tests/tests_main.c Henri Doreau (Aug 10)