mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 10:40:27 +09:00
pki: Fix allocation of ed25519 public keys
Signed-off-by: Tiamo Laitakari <tiamo.laitakari@cs.helsinki.fi> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
fa9fbb1d67
commit
5478de1a64
@@ -35,8 +35,8 @@ int pki_key_generate_ed25519(ssh_key key)
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
key->ed25519_pubkey = malloc(sizeof (ed25519_privkey));
|
key->ed25519_pubkey = malloc(sizeof (ed25519_pubkey));
|
||||||
if (key->ed25519_privkey == NULL) {
|
if (key->ed25519_pubkey == NULL) {
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user