Typo fix related to a33d7eb
[novacoin.git] / src / net.cpp
index f711696..bf2f38b 100644 (file)
@@ -1791,7 +1791,7 @@ bool BindListenPort(const CService &addrBind, string& strError)
     {
         strError = strprintf("Error: Couldn't set properties on socket for incoming connections (error %d)", WSAGetLastError());
         printf("%s\n", strError.c_str());
-        CloseSocket(hSocket);
+        CloseSocket(hListenSocket);
         return false;
     }