aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-12-30 16:19:34 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-12-30 16:19:34 +0200
commitf9a95289d58cce5a630c0352ea9eb52a634ffc05 (patch)
tree047366f18f6f2a77e625f779277b4fdbaf46a72b /src/libstat
parent3a98d054f54cd3f558dc3596fdde46d7c456d0fc (diff)
downloadrspamd-f9a95289d58cce5a630c0352ea9eb52a634ffc05.tar.gz
rspamd-f9a95289d58cce5a630c0352ea9eb52a634ffc05.zip
[Minor] Avoid reusing GError
Diffstat (limited to 'src/libstat')
-rw-r--r--src/libstat/stat_process.c4
1 files changed, 4 insertions, 0 deletions
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 "