Skip to content

Commit 0faa40e

Browse files
sshd.exe bug fix, freeing same buffer twice
1 parent eb2f68c commit 0faa40e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

auth2-pubkey.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,10 @@ userauth_pubkey(Authctxt *authctxt)
307307
auth2_record_userkey(authctxt, key);
308308
key = NULL; /* Don't free below */
309309
}
310-
#endif /* else #ifdef WIN32_FIXME. */
311310
buffer_free(&b);
312311
free(sig);
312+
#endif /* else #ifdef WIN32_FIXME. */
313+
313314
} else {
314315
debug("test whether pkalg/pkblob are acceptable");
315316
packet_check_eom();
@@ -860,6 +861,7 @@ match_principals_command(struct passwd *user_pw, struct sshkey_cert *cert)
860861
* Checks whether key is allowed in authorized_keys-format file,
861862
* returns 1 if the key is allowed or 0 otherwise.
862863
*/
864+
863865
static int
864866
check_authkeys_file(FILE *f, char *file, Key* key, struct passwd *pw)
865867
{

0 commit comments

Comments
 (0)