diff options
Diffstat (limited to 'libssh/server.c')
-rw-r--r-- | libssh/server.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libssh/server.c b/libssh/server.c index 358b13e7..a3ead63b 100644 --- a/libssh/server.c +++ b/libssh/server.c @@ -105,7 +105,9 @@ int ssh_bind_listen(SSH_BIND *ssh_bind){ int fd; if(!ssh_bind->options) return -1; - ssh_socket_init(); + if (ssh_socket_init() < 0) { + return -1; + } host=ssh_bind->options->bindaddr; if(!host) host="0.0.0.0"; |