auth: Reformat ssh_userauth_agent

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Sahana Prasad <sahana@redhat.com>
This commit is contained in:
Jakub Jelen
2023-09-21 18:02:54 +02:00
committed by Sahana Prasad
parent d604d7f872
commit 4f903812e6

View File

@@ -1283,7 +1283,8 @@ int ssh_userauth_publickey_auto(ssh_session session,
continue;
}
rc = ssh_pki_export_privkey_to_pubkey(state->privkey, &state->pubkey);
rc = ssh_pki_export_privkey_to_pubkey(state->privkey,
&state->pubkey);
if (rc == SSH_ERROR) {
ssh_key_free(state->privkey);
SAFE_FREE(session->auth.auto_state);