浏览代码

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

Steffen Jaeckel 11 年之前
父节点
当前提交
dc31ca545f
共有 1 个文件被更改,包括 1 次插入1 次删除
  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:
 cleanup:
   mp_clear_multi(t2L1, t2N1, t2q, t2seedlen, U, W, X, c, h, e, seedinc, NULL);
   mp_clear_multi(t2L1, t2N1, t2q, t2seedlen, U, W, X, c, h, e, seedinc, NULL);
 cleanup1:
 cleanup1:
-  XFREE(wbuf);
+  XFREE(sbuf);
 cleanup2:
 cleanup2:
   XFREE(wbuf);
   XFREE(wbuf);
 cleanup3:
 cleanup3: