~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a missing null pointer check in one of the dialog box functions.
[sgt/putty]
/
sshrsa.c
diff --git
a/sshrsa.c
b/sshrsa.c
index
6403343
..
7fb9694
100644
(file)
--- a/
sshrsa.c
+++ b/
sshrsa.c
@@
-413,6
+413,7
@@
int rsa_verify(struct RSAKey *key)
pm1 = copybn(key->p);
decbn(pm1);
ed = modmul(key->exponent, key->private_exponent, pm1);
pm1 = copybn(key->p);
decbn(pm1);
ed = modmul(key->exponent, key->private_exponent, pm1);
+ freebn(pm1);
cmp = bignum_cmp(ed, One);
sfree(ed);
if (cmp != 0)
cmp = bignum_cmp(ed, One);
sfree(ed);
if (cmp != 0)
@@
-421,6
+422,7
@@
int rsa_verify(struct RSAKey *key)
qm1 = copybn(key->q);
decbn(qm1);
ed = modmul(key->exponent, key->private_exponent, qm1);
qm1 = copybn(key->q);
decbn(qm1);
ed = modmul(key->exponent, key->private_exponent, qm1);
+ freebn(qm1);
cmp = bignum_cmp(ed, One);
sfree(ed);
if (cmp != 0)
cmp = bignum_cmp(ed, One);
sfree(ed);
if (cmp != 0)