From: Vsevolod Stakhov Date: Tue, 20 Aug 2019 17:14:28 +0000 (+0100) Subject: [Fix] Fix hang in fuzzy_learn when explicit rotation is set X-Git-Tag: 2.0~370 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=844f9bee3784199acc892e3955d86a4be9f5963d;p=rspamd.git [Fix] Fix hang in fuzzy_learn when explicit rotation is set --- diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index caa787ed7..5f34df4aa 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -2908,7 +2908,7 @@ register_fuzzy_controller_call (struct rspamd_http_connection_entry *entry, /* Get upstream */ - while ((selected = rspamd_upstream_get (rule->servers, + while ((selected = rspamd_upstream_get_forced (rule->servers, RSPAMD_UPSTREAM_SEQUENTIAL, NULL, 0))) { /* Create UDP socket */ addr = rspamd_upstream_addr_next (selected);