diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-04-15 09:11:09 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-04-15 09:11:09 +0200 |
commit | 3a77f2aebe7161125f5bad10a7c6a9a71ff471a5 (patch) | |
tree | 2930982fd733506a2cd28d7f443c3649def40872 | |
parent | 5939cfe78af88710fb88f93ee435b78b93022f4e (diff) | |
download | libssh-3a77f2aebe7161125f5bad10a7c6a9a71ff471a5.tar.gz libssh-3a77f2aebe7161125f5bad10a7c6a9a71ff471a5.tar.xz libssh-3a77f2aebe7161125f5bad10a7c6a9a71ff471a5.zip |
[pki] Fix buffer overflow in pki
-rw-r--r-- | src/pki.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |