summaryrefslogtreecommitdiffstats
path: root/ssh-keygen.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-01-20 00:56:31 +0100
committerDarren Tucker <dtucker@zip.com.au>2005-01-20 00:56:31 +0100
commit7cfeecf67008d5135718806fab6bda7f353e5f59 (patch)
tree7719eef6bbc17d47cf9bef298a8f022e94fda604 /ssh-keygen.c
parent - markus@cvs.openbsd.org 2004/12/23 17:35:48 (diff)
downloadopenssh-7cfeecf67008d5135718806fab6bda7f353e5f59.tar.xz
openssh-7cfeecf67008d5135718806fab6bda7f353e5f59.zip
- markus@cvs.openbsd.org 2004/12/23 17:38:07
[ssh-keygen.c] leak; from mpech
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r--ssh-keygen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c
index d39e7d881..7ed62a30c 100644
--- a/ssh-keygen.c
+++ b/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;
}