From: Mark Wooding Date: Wed, 23 Oct 2019 03:10:27 +0000 (+0100) Subject: pub/dh-kcdsa.c: Free the correct factor. X-Git-Tag: 2.4.5~14 X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/commitdiff_plain/2c70dfbf7facca44ff6074d865f429a6ae0ace5e pub/dh-kcdsa.c: Free the correct factor. --- diff --git a/pub/dh-kcdsa.c b/pub/dh-kcdsa.c index e7733095..5feda92f 100644 --- a/pub/dh-kcdsa.c +++ b/pub/dh-kcdsa.c @@ -88,7 +88,7 @@ int dh_kcdsagen(dh_param *dp, unsigned ql, unsigned pl, dp->q = pgen("p", MP_NEW, x, ev, ec, steps, pgen_simulstep, &ss, rabin_iters(ql), pgen_simultest, &ss); - mp_drop(sp[0].mul); + mp_drop(sp[1].mul); if (!dp->q) goto fail_1; dp->p = sp[1].u.x;