From: Pekka Riikonen Date: Mon, 23 Sep 2002 09:00:30 +0000 (+0000) Subject: Fixed double free in public key setting. X-Git-Tag: silc.client.0.9.6~79 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=6bab2172769b64f79282cfd11a8b8dfa3735ad6a Fixed double free in public key setting. --- diff --git a/CHANGES b/CHANGES index a2aa219b..50291a96 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,9 @@ +Mon Sep 23 10:59:39 CEST 2002 Pekka Riikonen + + * Fixed double free in RSA public key set function + silc_rsa_set_public_key. Affected file lib/silccrypt/rsa.c. + Bug #29. + Sun Sep 22 14:54:05 EEST 2002 Pekka Riikonen * Rewrote WHOIS, WHOWAS and IDENTIFY commands in the server. diff --git a/lib/silccrypt/rsa.c b/lib/silccrypt/rsa.c index 47158aab..368fc75d 100644 --- a/lib/silccrypt/rsa.c +++ b/lib/silccrypt/rsa.c @@ -227,7 +227,7 @@ SILC_PKCS_API_SET_PUBLIC_KEY(rsa) if (key->pub_set) { silc_mp_uninit(&key->e); - silc_mp_uninit(&key->e); + silc_mp_uninit(&key->n); key->pub_set = FALSE; }