projects
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb71a66
)
DKIM: fix errorcheck in signing, lilbgcrypt version. Bug 2450
author
Jeremy Harris
<jgh146exb@wizmail.org>
Sun, 29 Sep 2019 11:49:34 +0000
(12:49 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Sun, 29 Sep 2019 11:49:34 +0000
(12:49 +0100)
src/src/pdkim/signing.c
patch
|
blob
|
blame
|
history
diff --git
a/src/src/pdkim/signing.c
b/src/src/pdkim/signing.c
index aff3d90616bac6a3e677a4be2f327ba0c1a47f66..102e7bf5152738128eb6ac4b8b68df07e6ccecd9 100644
(file)
--- a/
src/src/pdkim/signing.c
+++ b/
src/src/pdkim/signing.c
@@
-412,8
+412,9
@@
if ( !(s1 = Ustrstr(CS privkey_pem, "-----BEGIN RSA PRIVATE KEY-----"))
*s2 = '\0';
-if ((
der.len = b64decode(s1, &der.data)) < 0
)
+if ((
rc = b64decode(s1, &der.data) < 0)
)
return US"Bad PEM-DER b64 decode";
+der.len = rc;
/* untangle asn.1 */