mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
This commit fixes connect_host() such that if ssh_new() fails, connect_host() fails and provides the reason for failure. Prior to this commit if ssh_new() failed, connect_host() failed but did not provide the reason for failure to connect to the host. Signed-off-by: Eshan Kelkar <eshankelkar@galorithm.com> Reviewed-by: Sahana Prasad <sahana@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>