0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

SSH: Commented quirk based on undocumented behavior of LibSSH

This commit is contained in:
Jan Moskyto Matejka 2016-12-07 09:13:29 +01:00
parent f7f70bed8f
commit cdbe1defa4

View File

@ -1415,6 +1415,10 @@ sk_ssh_connect(sock *s)
switch (ssh_connect(s->ssh->session)) switch (ssh_connect(s->ssh->session))
{ {
case SSH_AGAIN: 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; return SSH_AGAIN;
case SSH_OK: case SSH_OK: