diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-12-30 16:19:34 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-12-30 16:19:34 +0200 |
commit | f9a95289d58cce5a630c0352ea9eb52a634ffc05 (patch) | |
tree | 047366f18f6f2a77e625f779277b4fdbaf46a72b /src/libstat | |
parent | 3a98d054f54cd3f558dc3596fdde46d7c456d0fc (diff) | |
download | rspamd-f9a95289d58cce5a630c0352ea9eb52a634ffc05.tar.gz rspamd-f9a95289d58cce5a630c0352ea9eb52a634ffc05.zip |
[Minor] Avoid reusing GError
Diffstat (limited to 'src/libstat')
-rw-r--r-- | src/libstat/stat_process.c | 4 |
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 " |