Browse Source

dsa_make_key: fix free of wrong pointer resulting in double-free

Steffen Jaeckel 11 years ago
parent
commit
dc31ca545f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/pk/dsa/dsa_make_key.c

+ 1 - 1
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: