]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
SSH: Commented quirk based on undocumented behavior of LibSSH
authorJan Moskyto Matejka <mq@ucw.cz>
Wed, 7 Dec 2016 08:13:29 +0000 (09:13 +0100)
committerJan Moskyto Matejka <mq@ucw.cz>
Wed, 7 Dec 2016 08:35:24 +0000 (09:35 +0100)
sysdep/unix/io.c

index 13a2c8f8cd908f1bd52563b7fcab0e9957d5a83d..cb57ffea1441aa9091ba5c6aa2f17d08558d0122 100644 (file)
@@ -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: