From dc31ca545fda846588261a99e6b1e58c6af230d2 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Fri, 9 May 2014 22:55:49 +0200 Subject: [PATCH] dsa_make_key: fix free of wrong pointer resulting in double-free --- src/pk/dsa/dsa_make_key.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pk/dsa/dsa_make_key.c b/src/pk/dsa/dsa_make_key.c index 69b2708f..44ad2071 100644 --- a/src/pk/dsa/dsa_make_key.c +++ b/src/pk/dsa/dsa_make_key.c @@ -186,7 +186,7 @@ int dsa_make_params(prng_state *prng, int wprng, int group_size, int modulus_siz cleanup: mp_clear_multi(t2L1, t2N1, t2q, t2seedlen, U, W, X, c, h, e, seedinc, NULL); cleanup1: - XFREE(wbuf); + XFREE(sbuf); cleanup2: XFREE(wbuf); cleanup3: