diff options
author | Matt Johnston <matt@ucc.asn.au> | 2006-12-06 13:11:41 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2006-12-06 13:11:41 +0000 |
commit | 4b426d086cb9a613746fcfecb6f64205afa70bba (patch) | |
tree | cec78b43140a2610175f8e918ae22bfff0bbdf1f /dss.c | |
parent | e0c6bb999d449dc22fca36fbd7a3ed4928682122 (diff) | |
parent | 620d26799eefb5b1c1fda0b99c3675166a71880a (diff) | |
download | dropbear-4b426d086cb9a613746fcfecb6f64205afa70bba.tar.gz |
merge of '182c2d8dbd5321ef4d1df8758936f4dc7127015f'
and '31dcd7a22983ef19d6c63248e415e71d292dd0ec'
Diffstat (limited to 'dss.c')
-rw-r--r-- | dss.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -90,6 +90,9 @@ int buf_get_dss_priv_key(buffer* buf, dss_key *key) { key->x = m_malloc(sizeof(mp_int)); m_mp_init(key->x); ret = buf_getmpint(buf, key->x); + if (ret == DROPBEAR_FAILURE) { + m_free(key->x); + } return ret; } |