common, return -1 for bad socket

master
Jay Sorg 7 years ago committed by jsorg71
parent c6c513b23c
commit 285465a1f5

@ -579,7 +579,7 @@ int
g_sck_local_socket(void)
{
#if defined(_WIN32)
return 0;
return -1;
#else
return socket(PF_LOCAL, SOCK_STREAM, 0);
#endif
@ -592,7 +592,7 @@ g_sck_vsock_socket(void)
#if defined(XRDP_ENABLE_VSOCK)
return socket(PF_VSOCK, SOCK_STREAM, 0);
#else
return 0;
return -1;
#endif
}

Loading…
Cancel
Save