]> source.dussan.org Git - rspamd.git/commitdiff
Fix crash on broken DKIM DNS records.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 20 Jan 2015 13:39:02 +0000 (13:39 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 20 Jan 2015 13:39:33 +0000 (13:39 +0000)
src/libserver/dkim.c

index 3c6146a376f7d8ceaa8ff87fb51018a5041376e3..dc0b731661b8990f4d83f4a279cb2922ddb52f63 100644 (file)
@@ -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;
                        }