diff options
author | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2014-07-26 13:33:23 -0700 |
---|---|---|
committer | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2014-07-26 13:33:23 -0700 |
commit | 27055d5762d23ae3996e7e41ef45ef6454fa2d65 (patch) | |
tree | b45025733988961e08bde0c7e495f73c939a9937 /xup | |
parent | fde7be5151f7db096610cb59ca964e22e6af79fb (diff) | |
download | xrdp-proprietary-27055d5762d23ae3996e7e41ef45ef6454fa2d65.tar.gz xrdp-proprietary-27055d5762d23ae3996e7e41ef45ef6454fa2d65.zip |
coverity: improper use of negative value
Diffstat (limited to 'xup')
-rw-r--r-- | xup/xup.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -212,10 +212,15 @@ lib_mod_connect(struct mod *mod) if (use_uds) { mod->sck = g_tcp_local_socket(); + if (mod->sck < 0) + return 1; } else { mod->sck = g_tcp_socket(); + if (mod->sck < 0) + return 1; + g_tcp_set_non_blocking(mod->sck); g_tcp_set_no_delay(mod->sck); } |