diff options
author | Jan Moskyto Matejka <mq@ucw.cz> | 2016-12-07 09:13:29 +0100 |
---|---|---|
committer | Jan Moskyto Matejka <mq@ucw.cz> | 2016-12-07 09:35:24 +0100 |
commit | cdbe1defa4b783715ed29d8d253a55d3efe0b9ed (patch) | |
tree | 57201f1095e53c86005ef3d772674125faf6ac5d /sysdep | |
parent | f7f70bed8f5fd50873f92b6e119de8864c2631a8 (diff) |
SSH: Commented quirk based on undocumented behavior of LibSSH
Diffstat (limited to 'sysdep')
-rw-r--r-- | sysdep/unix/io.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index 13a2c8f8..cb57ffea 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -1415,6 +1415,10 @@ sk_ssh_connect(sock *s) switch (ssh_connect(s->ssh->session)) { case SSH_AGAIN: + /* A quick look into libSSH shows that ssh_get_fd() should return non-(-1) + * after SSH_AGAIN is returned by ssh_connect(). This is however nowhere + * documented but our code relies on that. + */ return SSH_AGAIN; case SSH_OK: |