diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-13 16:28:56 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-16 10:59:51 +0000 |
commit | 16c1f5d2dd9f8390f7fd48cbd46b4bc87639e746 (patch) | |
tree | 8d6503abebcf229ab2e5eb101307c64aa582039c | |
parent | a7b240a2948dfb557b8da776e798534fd978bd12 (diff) | |
download | rspamd-16c1f5d2dd9f8390f7fd48cbd46b4bc87639e746.tar.gz rspamd-16c1f5d2dd9f8390f7fd48cbd46b4bc87639e746.zip |
[Fix] Fix errors handling in fuzzy backend initialization
-rw-r--r-- | src/libserver/fuzzy_backend.c | 2 |
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; |