Marcus Meissner : ws2_32: Close the dest socket (Coverity).
Alexandre Julliard
julliard at winehq.org
Tue May 28 15:16:59 CDT 2013
Module: wine
Branch: master
Commit: 1a10d4d0cd27ddf4fca1a4dd910fe7498a7b0f00
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1a10d4d0cd27ddf4fca1a4dd910fe7498a7b0f00
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Sun May 26 14:33:25 2013 +0200
ws2_32: Close the dest socket (Coverity).
---
dlls/ws2_32/tests/sock.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index 804c66b..4612116 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -4176,6 +4176,8 @@ static void test_WSARecv(void)
todo_wine ok(!bret && (GetLastError() == ERROR_NETNAME_DELETED || broken(GetLastError() == ERROR_IO_INCOMPLETE) /* win9x */),
"Did not get disconnect event: %d, error %d\n", bret, GetLastError());
ok(bytesReturned == 0, "Bytes received is %d\n", bytesReturned);
+ closesocket(dest);
+ dest = INVALID_SOCKET;
src = WSASocketW(AF_INET, SOCK_STREAM, IPPROTO_TCP, NULL, 0, 0);
ok(src != INVALID_SOCKET, "failed to create socket %d\n", WSAGetLastError());
More information about the wine-cvs
mailing list