From 558f889aae4621000f49eec4f8b668123d28c9ec Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 17 Jun 2010 13:47:29 +0200 Subject: Fixed more fd checks. --- libssh/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libssh/options.c') diff --git a/libssh/options.c b/libssh/options.c index f87af58..b7eeb27 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; -- cgit