summaryrefslogtreecommitdiffhomepage
path: root/rsa.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-05-25 00:54:19 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-05-25 00:54:19 +0800
commitaafeebd0c841494e4f7315890bc97ed0daf99cbd (patch)
tree25eca11af5943d69bc9ce4e27a62b3937bb64824 /rsa.c
parent6b0d47b3645c987b457a6f2562db093827421382 (diff)
have separate ecdsa keys for each size
fix crash from the mp_alloc_init_multi change in RSA --HG-- branch : ecc
Diffstat (limited to 'rsa.c')
-rw-r--r--rsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsa.c b/rsa.c
index 92adee4..e2abab1 100644
--- a/rsa.c
+++ b/rsa.c
@@ -96,7 +96,7 @@ int buf_get_rsa_priv_key(buffer* buf, dropbear_rsa_key *key) {
key->p = NULL;
key->q = NULL;
- m_mp_alloc_init_multi(&key->d);
+ m_mp_alloc_init_multi(&key->d, NULL);
if (buf_getmpint(buf, key->d) == DROPBEAR_FAILURE) {
TRACE(("leave buf_get_rsa_priv_key: d: ret == DROPBEAR_FAILURE"))
goto out;