]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rpc: fix handling of SSH auth failure code v4.9.0-rc1
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 31 Aug 2018 10:13:39 +0000 (11:13 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 30 Oct 2018 16:31:52 +0000 (16:31 +0000)
commit5a128712bc76d7db80ce362db7d7ddd5062088f8
tree98bcd681f65a81d47d65c9c146d96a9ead53b332
parenta017bae1ae63d43dd51528f8593dd25f10d2fe21
rpc: fix handling of SSH auth failure code

The result of libssh2_userauth_password is being assigned to 'ret' in
one branch and 'rc' in the other branch. Checks are all done against the
'ret' variable, so one branch never does the correct check.

Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/rpc/virnetsshsession.c