summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-keygen.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2004-12-23 17:38:07 +0000
committermarkus <markus@openbsd.org>2004-12-23 17:38:07 +0000
commitb871f923c275b4ac09b528ce8bef3e8030fab7d7 (patch)
tree9f9c25e7c450d7104576765104b44e9c9df803e3 /usr.bin/ssh/ssh-keygen.c
parentcheck for NULL; from mpech (diff)
downloadwireguard-openbsd-b871f923c275b4ac09b528ce8bef3e8030fab7d7.tar.xz
wireguard-openbsd-b871f923c275b4ac09b528ce8bef3e8030fab7d7.zip
leak; from mpech
Diffstat (limited to 'usr.bin/ssh/ssh-keygen.c')
-rw-r--r--usr.bin/ssh/ssh-keygen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c
index 54f70dda938..d8170e9e6a6 100644
--- a/usr.bin/ssh/ssh-keygen.c
+++ b/usr.bin/ssh/ssh-keygen.c
@@ -12,7 +12,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh-keygen.c,v 1.117 2004/07/11 17:48:47 deraadt Exp $");
+RCSID("$OpenBSD: ssh-keygen.c,v 1.118 2004/12/23 17:38:07 markus Exp $");
#include <openssl/evp.h>
#include <openssl/pem.h>
@@ -239,6 +239,7 @@ do_convert_private_ssh2_from_blob(u_char *blob, u_int blen)
} else if (strstr(type, "rsa")) {
ktype = KEY_RSA;
} else {
+ buffer_free(&b);
xfree(type);
return NULL;
}