summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2019-09-29 12:49:34 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2019-09-29 12:49:34 +0100
commit428cdca73df1791fcba048d0f1093725d8288bd6 (patch)
treeb985e0c74b6d97e9bb62ba0dcac81668269a9554
parentbb71a66f55c3dd047dd5973c08365a967910f5e1 (diff)
DKIM: fix errorcheck in signing, lilbgcrypt version. Bug 2450
-rw-r--r--src/src/pdkim/signing.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/src/pdkim/signing.c b/src/src/pdkim/signing.c
index aff3d9061..102e7bf51 100644
--- 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 */