diff options
author | Andreas Schneider <asn@cynapses.org> | 2010-06-17 13:47:29 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cynapses.org> | 2010-06-17 13:47:29 +0200 |
commit | 558f889aae4621000f49eec4f8b668123d28c9ec (patch) | |
tree | 78a4b6b738e6d9a62b30ee4892d6a788988975d9 /libssh/options.c | |
parent | 937268eb3e5462ba9ad556dd0d667ae565c7c603 (diff) | |
download | libssh-558f889aae4621000f49eec4f8b668123d28c9ec.tar.gz libssh-558f889aae4621000f49eec4f8b668123d28c9ec.tar.xz libssh-558f889aae4621000f49eec4f8b668123d28c9ec.zip |
Fixed more fd checks.
Diffstat (limited to 'libssh/options.c')
-rw-r--r-- | libssh/options.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/options.c b/libssh/options.c index f87af587..b7eeb273 100644 --- a/libssh/options.c +++ b/libssh/options.c @@ -398,7 +398,7 @@ int ssh_options_set(ssh_session session, enum ssh_options_e type, break; case SSH_OPTIONS_FD: if (value == NULL) { - session->fd = -1; + session->fd = SSH_INVALID_SOCKET; } else { socket_t *x = (socket_t *) value; |