summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-13 16:28:56 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-16 10:59:51 +0000
commit16c1f5d2dd9f8390f7fd48cbd46b4bc87639e746 (patch)
tree8d6503abebcf229ab2e5eb101307c64aa582039c
parenta7b240a2948dfb557b8da776e798534fd978bd12 (diff)
downloadrspamd-16c1f5d2dd9f8390f7fd48cbd46b4bc87639e746.tar.gz
rspamd-16c1f5d2dd9f8390f7fd48cbd46b4bc87639e746.zip
[Fix] Fix errors handling in fuzzy backend initialization
-rw-r--r--src/libserver/fuzzy_backend.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libserver/fuzzy_backend.c b/src/libserver/fuzzy_backend.c
index 3dec60c57..c9c16297d 100644
--- a/src/libserver/fuzzy_backend.c
+++ b/src/libserver/fuzzy_backend.c
@@ -304,6 +304,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;