From 3a77f2aebe7161125f5bad10a7c6a9a71ff471a5 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Fri, 15 Apr 2011 09:11:09 +0200 Subject: [PATCH] [pki] Fix buffer overflow in pki --- src/pki.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pki.c b/src/pki.c index 59d8b48f..b6ce9ca7 100644 --- a/src/pki.c +++ b/src/pki.c @@ -256,7 +256,7 @@ ssh_key ssh_pki_publickey_from_privatekey(ssh_key privkey) { return NULL; } - pubkey = malloc(sizeof(struct ssh_public_key_struct)); + pubkey = malloc(sizeof(struct ssh_key_struct)); if (pubkey == NULL) { return NULL; }