diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-14 16:23:17 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-14 16:23:17 +0100 |
commit | 98a7518f0b8f5bec20b5995ffcfde079b3fc8138 (patch) | |
tree | 0a1fecf6ae5f54b9237aa87d2b6e89917abc5188 /src/plugins/fuzzy_check.c | |
parent | 5eb1f95de4a01b2e32fd292aff4c55f54b429c76 (diff) | |
download | rspamd-98a7518f0b8f5bec20b5995ffcfde079b3fc8138.tar.gz rspamd-98a7518f0b8f5bec20b5995ffcfde079b3fc8138.zip |
[Fix] Improve error messages on fuzzy add
Diffstat (limited to 'src/plugins/fuzzy_check.c')
-rw-r--r-- | src/plugins/fuzzy_check.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 3d35c2106..0dc803a6b 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -2200,7 +2200,7 @@ fuzzy_stat_command (struct rspamd_task *task) } } -static inline gboolean +static inline gint register_fuzzy_controller_call (struct rspamd_http_connection_entry *entry, struct fuzzy_rule *rule, struct rspamd_task *task, @@ -2213,7 +2213,7 @@ register_fuzzy_controller_call (struct rspamd_http_connection_entry *entry, rspamd_inet_addr_t *addr; struct rspamd_controller_session *session = entry->ud; gint sock; - gboolean ret = FALSE; + gint ret = -1; /* Get upstream */ @@ -2254,7 +2254,7 @@ register_fuzzy_controller_call (struct rspamd_http_connection_entry *entry, event_add (&s->timev, &s->tv); (*saved)++; - ret = TRUE; + ret = 1; } } |