From: Jan Moskyto Matejka Date: Wed, 7 Dec 2016 08:13:29 +0000 (+0100) Subject: SSH: Commented quirk based on undocumented behavior of LibSSH X-Git-Tag: v2.0.0-pre0~9^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdbe1defa4b783715ed29d8d253a55d3efe0b9ed;p=thirdparty%2Fbird.git SSH: Commented quirk based on undocumented behavior of LibSSH --- diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index 13a2c8f8c..cb57ffea1 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: