]> source.dussan.org Git - rspamd.git/commitdiff
[CritFix] Fix loading of DKIM public keys
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 29 May 2019 19:08:32 +0000 (20:08 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 29 May 2019 19:08:32 +0000 (20:08 +0100)
src/libserver/dkim.c

index 3bc43c4b24045a64b04881746b3273d20577a41c..2f1bef70137f2feaf90abd6973f0b1e59c2e8d02 100644 (file)
@@ -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);
        }