]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix double set of GError
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 20 Jun 2018 13:42:42 +0000 (14:42 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 20 Jun 2018 13:42:42 +0000 (14:42 +0100)
src/libserver/dkim.c

index 44a0b59602513e9a0547f29182da18a88a99144c..f532c5a577aa206be291f2487a51dd5786bf7946 100644 (file)
@@ -1439,6 +1439,8 @@ rspamd_dkim_parse_key (const gchar *txt, gsize *keylen, GError **err)
                                DKIM_ERROR,
                                DKIM_SIGERROR_KEYFAIL,
                                "key is missing");
+
+               return NULL;
        }
 
        if (alglen == 0 || alg == NULL) {