]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix errors handling in fuzzy backend initialization
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 13 Jan 2017 16:28:56 +0000 (16:28 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 13 Jan 2017 16:28:56 +0000 (16:28 +0000)
src/libserver/fuzzy_backend.c

index 8b5a55965c9ab2d84a5d8505ec1819c57883598f..5ab6739593c2cc0a10a177c43de49eee5116276e 100644 (file)
@@ -306,6 +306,8 @@ rspamd_fuzzy_backend_create (struct event_base *ev_base,
 
        if ((bk->subr_ud = bk->subr->init (bk, config, cfg, err)) == NULL) {
                g_slice_free1 (sizeof (*bk), bk);
+
+               return NULL;
        }
 
        return bk;