Skip to content
Snippets Groups Projects
Commit 014cb781 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix pubkey-first auth attempts.

Previously, once a pubkey was attempted, you could not use a password.
parent 15597385
No related branches found
No related tags found
No related merge requests found
Pipeline #5379 canceled
......@@ -325,8 +325,10 @@ bool sbbs_t::answer()
// Enable SSH so we can create a new user...
activate_ssh = set_authresponse(true);
}
if (pubkey)
if (pubkey) {
free_crypt_attrstr(pubkey);
pubkey = nullptr;
}
if (!activate_ssh)
set_authresponse(false);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment