ssh_connect: treat libssh2 return code better
authorDaniel Stenberg <daniel@haxx.se>
Sat, 26 Feb 2011 09:59:03 +0000 (10:59 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 26 Feb 2011 10:00:44 +0000 (11:00 +0100)
commit17de1cc3827c7229db3263cc18fdd186bccd1e6e
tree6682c2afafabe74431a43ec32b139d2e15fbf01a
parent5719e5616805b246128f68bb282b941af949268e
ssh_connect: treat libssh2 return code better

libssh2_knownhost_readfile() returns a negative value on error or
otherwise number of parsed known hosts - this was previously not
documented correctly in the libssh2 man page for the function.

Bug: http://curl.haxx.se/mail/lib-2011-02/0327.html
Reported by: murat
lib/ssh.c