From aafeebd0c841494e4f7315890bc97ed0daf99cbd Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Sat, 25 May 2013 00:54:19 +0800 Subject: have separate ecdsa keys for each size fix crash from the mp_alloc_init_multi change in RSA --HG-- branch : ecc --- keyimport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'keyimport.c') diff --git a/keyimport.c b/keyimport.c index d0469de..05bf800 100644 --- a/keyimport.c +++ b/keyimport.c @@ -680,7 +680,7 @@ static sign_key *openssh_read(const char *filename, char *passphrase) int private_key_len = 0; unsigned char* public_key_bytes = NULL; int public_key_len = 0; - ecc_key *ecc; + ecc_key *ecc = NULL; const struct dropbear_ecc_curve *curve = NULL; // See SEC1 v2, Appendix C.4 @@ -774,7 +774,7 @@ static sign_key *openssh_read(const char *filename, char *passphrase) goto error; } - retkey->ecckey = ecc; + *signkey_ecc_key_ptr(retkey, retkey->type) = ecc; } #endif // DROPBEAR_ECDSA -- cgit v1.2.3