aboutsummaryrefslogtreecommitdiff
path: root/src/pki.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pki.c')
-rw-r--r--src/pki.c2
1 files changed, 1 insertions, 1 deletions
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;
}