From 82db3a9acfd9eb16014e02d6afac2a6f30dbf3d1 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 20 Jan 2015 13:39:02 +0000 Subject: [PATCH] Fix crash on broken DKIM DNS records. --- src/libserver/dkim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libserver/dkim.c b/src/libserver/dkim.c index 3c6146a37..dc0b73166 100644 --- a/src/libserver/dkim.c +++ b/src/libserver/dkim.c @@ -664,7 +664,7 @@ rspamd_create_dkim_context (const gchar *sig, } break; case DKIM_STATE_ERROR: - if (err) { + if (err && *err) { msg_info ("dkim parse failed: %s", (*err)->message); return NULL; } -- 2.39.5