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

@@ -1272,18 +1272,19 @@ int ssh_userauth_publickey_auto(ssh_session session,
SSH_FATAL, SSH_FATAL,
"Failed to read private key: %s", "Failed to read private key: %s",
privkey_file); privkey_file);
state->it=state->it->next; state->it = state->it->next;
continue; continue;
} else if (rc == SSH_EOF) { } else if (rc == SSH_EOF) {
/* If the file doesn't exist, continue */ /* If the file doesn't exist, continue */
SSH_LOG(SSH_LOG_DEBUG, SSH_LOG(SSH_LOG_DEBUG,
"Private key %s doesn't exist.", "Private key %s doesn't exist.",
privkey_file); privkey_file);
state->it=state->it->next; state->it = state->it->next;
continue; 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) { if (rc == SSH_ERROR) {
ssh_key_free(state->privkey); ssh_key_free(state->privkey);
SAFE_FREE(session->auth.auto_state); SAFE_FREE(session->auth.auto_state);