aboutsummaryrefslogtreecommitdiff
path: root/src/pki.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2011-04-15 09:11:09 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2011-04-15 09:11:09 +0200
commit3a77f2aebe7161125f5bad10a7c6a9a71ff471a5 (patch)
tree2930982fd733506a2cd28d7f443c3649def40872 /src/pki.c
parent5939cfe78af88710fb88f93ee435b78b93022f4e (diff)
downloadlibssh-3a77f2aebe7161125f5bad10a7c6a9a71ff471a5.tar.gz
libssh-3a77f2aebe7161125f5bad10a7c6a9a71ff471a5.tar.xz
libssh-3a77f2aebe7161125f5bad10a7c6a9a71ff471a5.zip
[pki] Fix buffer overflow in pki
Diffstat (limited to 'src/pki.c')
-rw-r--r--src/pki.c2
1 files changed, 1 insertions, 1 deletions
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;
}