mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
pki: Fix ecdsa key dup.
This commit is contained in:
@@ -348,6 +348,8 @@ ssh_key pki_key_dup(const ssh_key key, int demote)
|
|||||||
const EC_POINT *p;
|
const EC_POINT *p;
|
||||||
int ok;
|
int ok;
|
||||||
|
|
||||||
|
new->ecdsa_nid = key->ecdsa_nid;
|
||||||
|
|
||||||
new->ecdsa = EC_KEY_new_by_curve_name(key->ecdsa_nid);
|
new->ecdsa = EC_KEY_new_by_curve_name(key->ecdsa_nid);
|
||||||
if (new->ecdsa == NULL) {
|
if (new->ecdsa == NULL) {
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|||||||
Reference in New Issue
Block a user