From f9a95289d58cce5a630c0352ea9eb52a634ffc05 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Fri, 30 Dec 2016 16:19:34 +0200 Subject: [Minor] Avoid reusing GError --- src/libstat/stat_process.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libstat/stat_process.c') diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c index efe28e280..6d98d65d0 100644 --- a/src/libstat/stat_process.c +++ b/src/libstat/stat_process.c @@ -757,6 +757,10 @@ rspamd_stat_backends_learn (struct rspamd_stat_ctx *st_ctx, } end: + if (!res && err) { + return res; + } + if (!res && sel == NULL) { if (classifier) { g_set_error (err, rspamd_stat_quark (), 404, "cannot find classifier " -- cgit v1.2.3