1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

[pki] Fix buffer overflow in pki

This commit is contained in:
Aris Adamantiadis
2011-04-15 09:11:09 +02:00
parent 5939cfe78a
commit 3a77f2aebe

View File

@@ -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;
}