diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-10 17:34:42 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-10 17:34:42 +0100 |
commit | 0ef1054d00fdc1c13aa5e202c2f276b9207c51a0 (patch) | |
tree | 7b5c3dc7528551da83ce30a7748e2dda345ae496 /src | |
parent | c5787588dfa3013231095e69507ff4a59244a93b (diff) | |
download | rspamd-0ef1054d00fdc1c13aa5e202c2f276b9207c51a0.tar.gz rspamd-0ef1054d00fdc1c13aa5e202c2f276b9207c51a0.zip |
Fix free order.
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/fuzzy_check.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 0c3432fb8..c40179774 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -1114,7 +1114,6 @@ fuzzy_process_rule (struct rspamd_http_connection_entry *entry, return processed; err: - rspamd_task_free (task, FALSE); return -1; } @@ -1178,14 +1177,14 @@ fuzzy_process_handler (struct rspamd_http_connection_entry *conn_ent, if (res == -1) { msg_warn ("cannot send fuzzy request: %s", strerror (errno)); - rspamd_task_free (task, FALSE); rspamd_controller_send_error (conn_ent, 400, "Message sending error"); + rspamd_task_free (task, FALSE); return; } else if (!processed) { msg_warn ("no rules to match fuzzy with flag %d", flag); - rspamd_task_free (task, FALSE); rspamd_controller_send_error (conn_ent, 404, "No fuzzy rules matched"); + rspamd_task_free (task, FALSE); return; } |