chiark
/
gitweb
/
~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pub/rsa-gen.c: Don't leak `t'.
[catacomb]
/
pub
/
rsa-gen.c
diff --git
a/pub/rsa-gen.c
b/pub/rsa-gen.c
index 0653d1c3b2dafaf1bd2ca1b9eaadf0282e518790..c9a2da604a459e62560bbde0ff824b93a378f293 100644
(file)
--- a/
pub/rsa-gen.c
+++ b/
pub/rsa-gen.c
@@
-95,6
+95,7
@@
again:
mp_div(&t, &u, t, rp->p);
if (!MP_ZEROP(u)) t = mp_add(t, t, MP_ONE);
if (MP_CMP(q, <, t)) q = mp_leastcongruent(q, t, q, g.jp.m);
+ mp_drop(t);
g.r = mp_lsr(MP_NEW, rp->p, 1);
g.g = MP_NEW;