diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2017-11-07 14:36:39 -0800 |
---|---|---|
committer | jsorg71 <jay.sorg@gmail.com> | 2017-11-07 18:20:45 -0800 |
commit | 285465a1f531c35de606bfc140f7989d4f285b57 (patch) | |
tree | 0f5aa263d0162d17974c544aebdab0af5eac5dcd /common | |
parent | c6c513b23c4a3ecf0a4e397c47a10ac2783cec45 (diff) | |
download | xrdp-proprietary-285465a1f531c35de606bfc140f7989d4f285b57.tar.gz xrdp-proprietary-285465a1f531c35de606bfc140f7989d4f285b57.zip |
common, return -1 for bad socket
Diffstat (limited to 'common')
-rw-r--r-- | common/os_calls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/os_calls.c b/common/os_calls.c index 7bbeddfe..f974d75c 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -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 } |