chiark
/
gitweb
/
~mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b09aab
)
pub/rsa-gen.c: Don't leak `t'.
author
Mark Wooding
<mdw@distorted.org.uk>
Thu, 26 May 2016 08:26:09 +0000
(09:26 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 25 Jun 2016 13:09:38 +0000
(14:09 +0100)
pub/rsa-gen.c
patch
|
blob
|
blame
|
history
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;