commit | 5e20347651f3e9b57671884c37c375ef63095a45 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Mon May 30 15:27:58 2016 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Mon May 30 15:27:58 2016 +0200 |
tree | dc3591f16f779110bf3fac1a7be992c3a782e8a7 | |
parent | 46eac558ebf563461741a8f1af3f6528e3caf309 [diff] |
server session BUGFIX return proper value on timeout
diff --git a/src/session_server.c b/src/session_server.c index 6438543..3a4c509 100644 --- a/src/session_server.c +++ b/src/session_server.c
@@ -1452,6 +1452,9 @@ /* WRITE UNLOCK */ pthread_rwlock_unlock(&server_opts.endpt_array_lock); free(host); + if (!ret) { + return NC_MSG_WOULDBLOCK; + } return NC_MSG_ERROR; } sock = ret;