chiark / gitweb /
Merge branch '2.4.x' into 2.5.x
[catacomb] / pub / dh-kcdsa.c
index e7733095b7ea6ca1ad1622fe7a9f0d47e5a4b4e8..5feda92f3871ac75385b2ef7ec2e030aa4b4c44a 100644 (file)
@@ -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;