From: Vsevolod Stakhov Date: Tue, 20 Jan 2015 13:39:02 +0000 (+0000) Subject: Fix crash on broken DKIM DNS records. X-Git-Tag: 0.8.1~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=82db3a9acfd9eb16014e02d6afac2a6f30dbf3d1;p=rspamd.git Fix crash on broken DKIM DNS records. --- 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; }