HomePhabricator

auth: Fix memory leak in ssh_userauth_publickey_auto()

Authored by ansasaki on Mar 2 2020, 11:36 AM.

Description

auth: Fix memory leak in ssh_userauth_publickey_auto()

When a key is rejected, free the allocated memory before returning.

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 6bd2b93f43dacceaf060d1aeb89749eba7df2cbb)

Details

Committed
asnMar 29 2020, 9:59 AM
Parents
rLIBSSH673bf1ff09a6: doc: Fix a doxygen warning
Branches
Unknown
Tags
Unknown