summaryrefslogtreecommitdiffstats
path: root/src/pki_crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pki_crypto.c')
-rw-r--r--src/pki_crypto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pki_crypto.c b/src/pki_crypto.c
index 6c5f104..10b4150 100644
--- a/src/pki_crypto.c
+++ b/src/pki_crypto.c
@@ -348,6 +348,8 @@ ssh_key pki_key_dup(const ssh_key key, int demote)
const EC_POINT *p;
int ok;
+ new->ecdsa_nid = key->ecdsa_nid;
+
new->ecdsa = EC_KEY_new_by_curve_name(key->ecdsa_nid);
if (new->ecdsa == NULL) {
goto fail;