summaryrefslogtreecommitdiff
path: root/protocols/MSN/src/msn_natdetect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/MSN/src/msn_natdetect.cpp')
-rw-r--r--protocols/MSN/src/msn_natdetect.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/protocols/MSN/src/msn_natdetect.cpp b/protocols/MSN/src/msn_natdetect.cpp
index 60047bce40..c5e0d782db 100644
--- a/protocols/MSN/src/msn_natdetect.cpp
+++ b/protocols/MSN/src/msn_natdetect.cpp
@@ -109,6 +109,7 @@ void CMsnProto::MSNatDetect(void)
SOCKET s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
if (connect(s, (SOCKADDR*)&addr, sizeof(addr)) == SOCKET_ERROR) {
debugLogA("P2PNAT could not connect to echo server \"echo.edge.messenger.live.com\"");
+ closesocket(s);
return;
}