Nmap Development mailing list archives
Re: [Patch] nsock/tests/tests_main.c
From: Henri Doreau <henri.doreau () gmail com>
Date: Sun, 10 Aug 2014 15:21:10 +0200
2014-08-10 14:23 GMT+02:00 Gisle Vanem <gvanem () yahoo no>:
"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
My bad. Should be better now with r33462. -- Henri _______________________________________________ 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)