[openssh-commits] [openssh] 05/05: upstream: Plug leak. CID 913600.
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Sep 18 05:21:39 AEST 2026
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit bc41d062cc0f305e49d58430b467c3ce8c822a87
Author: dtucker at openbsd.org <dtucker at openbsd.org>
AuthorDate: Thu Sep 17 18:12:10 2026 +0000
upstream: Plug leak. CID 913600.
OpenBSD-Commit-ID: 24e1380bb4dbd11563e5a424dbee3255861aea6b
---
ssh-add.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ssh-add.c b/ssh-add.c
index 5ea75ae7a..515272a35 100644
--- a/ssh-add.c
+++ b/ssh-add.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-add.c,v 1.190 2026/09/16 16:46:07 dtucker Exp $ */
+/* $OpenBSD: ssh-add.c,v 1.191 2026/09/17 18:12:10 dtucker Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -611,6 +611,7 @@ load_resident_keys(int agent_fd, const char *skprovider, int qflag, int no_pin,
if ((r = sshsk_load_resident(skprovider, NULL, pin == NULL ? "" : pin,
0, &srks, &nsrks)) != 0) {
error_r(r, "Unable to load resident keys");
+ free(pin);
return r;
}
free(pin);
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list