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