mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-24 06:25:35 +02:00
sshd.exe bug fix, freeing same buffer twice
This commit is contained in:
parent
eb2f68ccae
commit
0faa40eae3
@ -307,9 +307,10 @@ userauth_pubkey(Authctxt *authctxt)
|
|||||||
auth2_record_userkey(authctxt, key);
|
auth2_record_userkey(authctxt, key);
|
||||||
key = NULL; /* Don't free below */
|
key = NULL; /* Don't free below */
|
||||||
}
|
}
|
||||||
#endif /* else #ifdef WIN32_FIXME. */
|
|
||||||
buffer_free(&b);
|
buffer_free(&b);
|
||||||
free(sig);
|
free(sig);
|
||||||
|
#endif /* else #ifdef WIN32_FIXME. */
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
debug("test whether pkalg/pkblob are acceptable");
|
debug("test whether pkalg/pkblob are acceptable");
|
||||||
packet_check_eom();
|
packet_check_eom();
|
||||||
@ -860,6 +861,7 @@ match_principals_command(struct passwd *user_pw, struct sshkey_cert *cert)
|
|||||||
* Checks whether key is allowed in authorized_keys-format file,
|
* Checks whether key is allowed in authorized_keys-format file,
|
||||||
* returns 1 if the key is allowed or 0 otherwise.
|
* returns 1 if the key is allowed or 0 otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static int
|
static int
|
||||||
check_authkeys_file(FILE *f, char *file, Key* key, struct passwd *pw)
|
check_authkeys_file(FILE *f, char *file, Key* key, struct passwd *pw)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user