[openssh-commits] [openssh] 04/06: upstream: fix crash at exit (visible via ssh-keygen -D) when
git+noreply at mindrot.org
git+noreply at mindrot.org
Thu Oct 9 15:46:14 AEDT 2025
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch V_10_2
in repository openssh.
commit ea9af2921cb6af8e65341531db3a7351917f0a92
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Wed Oct 8 21:02:16 2025 +0000
upstream: fix crash at exit (visible via ssh-keygen -D) when
multiple keys loaded. ok markus deraadt dtucker
OpenBSD-Commit-ID: baa9763ec69d162108dafd962792ec5610ff45c9
---
ssh-pkcs11.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/ssh-pkcs11.c b/ssh-pkcs11.c
index 92822f851..c88179473 100644
--- a/ssh-pkcs11.c
+++ b/ssh-pkcs11.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-pkcs11.c,v 1.72 2025/10/03 00:08:02 djm Exp $ */
+/* $OpenBSD: ssh-pkcs11.c,v 1.73 2025/10/08 21:02:16 djm Exp $ */
/*
* Copyright (c) 2010 Markus Friedl. All rights reserved.
* Copyright (c) 2014 Pedro Martelletto. All rights reserved.
@@ -2029,8 +2029,10 @@ pkcs11_terminate(void)
debug3_f("called");
- while ((k11 = TAILQ_FIRST(&pkcs11_keys)) != NULL)
+ while ((k11 = TAILQ_FIRST(&pkcs11_keys)) != NULL) {
+ TAILQ_REMOVE(&pkcs11_keys, k11, next);
pkcs11_k11_free(k11);
+ }
while ((p = TAILQ_FIRST(&pkcs11_providers)) != NULL) {
TAILQ_REMOVE(&pkcs11_providers, p, next);
pkcs11_provider_finalize(p);
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list