mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
auth: Fix a possible double free.
This commit is contained in:
@@ -1194,7 +1194,9 @@ int ssh_userauth_publickey_auto(ssh_session session,
|
||||
"Public key for %s refused by server",
|
||||
privkey_file);
|
||||
ssh_key_free(state->privkey);
|
||||
state->privkey = NULL;
|
||||
ssh_key_free(state->pubkey);
|
||||
state->pubkey = NULL;
|
||||
state->it=state->it->next;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user