diff options
author | rofl0r <retnyg@gmx.net> | 2011-08-05 03:00:21 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-06 11:12:02 +0200 |
commit | af85337f5ff052437fa5cf117f3d065488640660 (patch) | |
tree | b289a89b4f032b9be811d75a321fef28c29ba0d9 /src/messages.c | |
parent | 563fbe4de8ee090b40b50415a86f9a3da16f46b0 (diff) | |
download | libssh-af85337f5ff052437fa5cf117f3d065488640660.tar.gz libssh-af85337f5ff052437fa5cf117f3d065488640660.tar.xz libssh-af85337f5ff052437fa5cf117f3d065488640660.zip |
session: Fix timeout handling.
-2 now means to use the timeout specified in options. It wasn't used
earlier and poll only knows -1 and 0 anyway for special meanings.
Diffstat (limited to 'src/messages.c')
-rw-r--r-- | src/messages.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/messages.c b/src/messages.c index bbd9d1f..30a0fd7 100644 --- a/src/messages.c +++ b/src/messages.c @@ -183,7 +183,7 @@ ssh_message ssh_message_get(ssh_session session) { session->ssh_message_list = ssh_list_new(); } do { - if (ssh_handle_packets(session,-1) == SSH_ERROR) { + if (ssh_handle_packets(session, -2) == SSH_ERROR) { leave_function(); return NULL; } |