From ecbdc589f4ef7d64226a1c97dea90f32157d4161 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 29 Dec 2011 11:04:00 +0100 Subject: pki: Fix ecdsa key dup. --- src/pki_crypto.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit