commit 5956fcf: [CritFix] Fix loading of DKIM public keys
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed May 29 19:14:04 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-05-29 20:08:32 +0100
URL: https://github.com/rspamd/rspamd/commit/5956fcf7ccf5682612e8916492a86e895e158c55 (HEAD -> master)
[CritFix] Fix loading of DKIM public keys
---
src/libserver/dkim.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/libserver/dkim.c b/src/libserver/dkim.c
index 3bc43c4b2..2f1bef701 100644
--- a/src/libserver/dkim.c
+++ b/src/libserver/dkim.c
@@ -1499,16 +1499,16 @@ rspamd_dkim_parse_key (const gchar *txt, gsize *keylen, GError **err)
}
if (alglen == 8 && rspamd_lc_cmp (alg, "ecdsa256", alglen) == 0) {
- return rspamd_dkim_make_key (c, klen,
+ return rspamd_dkim_make_key (key, klen,
RSPAMD_DKIM_KEY_ECDSA, err);
}
else if (alglen == 7 && rspamd_lc_cmp (alg, "ed25519", alglen) == 0) {
- return rspamd_dkim_make_key (c, klen,
+ return rspamd_dkim_make_key (key, klen,
RSPAMD_DKIM_KEY_EDDSA, err);
}
else {
/* We assume RSA default in all cases */
- return rspamd_dkim_make_key (c, klen,
+ return rspamd_dkim_make_key (key, klen,
RSPAMD_DKIM_KEY_RSA, err);
}
More information about the Commits
mailing list