[openssh-commits] [openssh] 11/15: upstream: memleak of keys not used for authentication; ok
git+noreply at mindrot.org
git+noreply at mindrot.org
Mon Sep 15 16:13:50 AEST 2025
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 0bb37080c86674de7cdfb56c80add3cd316c68a8
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Mon Sep 15 04:51:35 2025 +0000
upstream: memleak of keys not used for authentication; ok
dtucker@
OpenBSD-Commit-ID: ddfda79d243150fbd382d8f2cd75a90a072b3669
---
sshconnect2.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sshconnect2.c b/sshconnect2.c
index 1ee6000ab..b3679c9d7 100644
--- a/sshconnect2.c
+++ b/sshconnect2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshconnect2.c,v 1.377 2025/02/18 08:02:48 djm Exp $ */
+/* $OpenBSD: sshconnect2.c,v 1.378 2025/09/15 04:51:35 djm Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
* Copyright (c) 2008 Damien Miller. All rights reserved.
@@ -1815,7 +1815,7 @@ pubkey_prepare(struct ssh *ssh, Authctxt *authctxt)
TAILQ_REMOVE(preferred, id, next);
sshkey_free(id->key);
free(id->filename);
- memset(id, 0, sizeof(*id));
+ freezero(id, sizeof(*id));
}
/* List the keys we plan on using */
TAILQ_FOREACH_SAFE(id, preferred, next, id2) {
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list