diff --git a/xpcPlugin/UDPSocket.cpp b/xpcPlugin/UDPSocket.cpp index 3b5cf3a..da65e2b 100644 --- a/xpcPlugin/UDPSocket.cpp +++ b/xpcPlugin/UDPSocket.cpp @@ -27,6 +27,7 @@ namespace XPC #if LOG_VERBOSITY > 0 Log::FormatLine("[SOCK] ERROR: WSAStartup failed with error code %i.", startResult); #endif + this->sock = ~0; return; } if ((this->sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == INVALID_SOCKET)