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:
@@ -256,7 +256,7 @@ ssh_key ssh_pki_publickey_from_privatekey(ssh_key privkey) {
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
pubkey = malloc(sizeof(struct ssh_public_key_struct));
|
pubkey = malloc(sizeof(struct ssh_key_struct));
|
||||||
if (pubkey == NULL) {
|
if (pubkey == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user