common, return -1 for bad socket

This commit is contained in:
Jay Sorg 2017-11-07 14:36:39 -08:00 committed by jsorg71
parent c6c513b23c
commit 285465a1f5

View File

@ -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
}