[openssh-commits] [openssh] 04/04: upstream: ssh-sk: free a resident key's user id
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Jan 14 14:40:48 AEDT 2022
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 52423f64e13db2bdc31a51b32e999cb1bfcf1263
Author: djm at openbsd.org <djm at openbsd.org>
Date: Fri Jan 14 03:35:10 2022 +0000
upstream: ssh-sk: free a resident key's user id
From Pedro Martelletto; ok dtucker & me
OpenBSD-Commit-ID: 47be40d602b7a6458c4c71114df9b53d149fc2e9
---
ssh-sk.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ssh-sk.c b/ssh-sk.c
index bac83cd1..a1ff5cc4 100644
--- a/ssh-sk.c
+++ b/ssh-sk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-sk.c,v 1.37 2021/11/02 22:56:40 djm Exp $ */
+/* $OpenBSD: ssh-sk.c,v 1.38 2022/01/14 03:35:10 djm Exp $ */
/*
* Copyright (c) 2019 Google LLC
*
@@ -742,6 +742,7 @@ sshsk_free_sk_resident_keys(struct sk_resident_key **rks, size_t nrks)
return;
for (i = 0; i < nrks; i++) {
free(rks[i]->application);
+ freezero(rks[i]->user_id, rks[i]->user_id_len);
freezero(rks[i]->key.key_handle, rks[i]->key.key_handle_len);
freezero(rks[i]->key.public_key, rks[i]->key.public_key_len);
freezero(rks[i]->key.signature, rks[i]->key.signature_len);
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list