aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/fuzzy_backend_redis.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-11-25 12:50:02 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-11-25 12:50:02 +0000
commit6af040cf2949ce0eebe52121efef6bb3ce4bcc54 (patch)
tree869ca667a132933cdb3ebff1006986b04bb0a97d /src/libserver/fuzzy_backend_redis.c
parent65967cdddf5ff8d858ff070bdc7885482408d2b7 (diff)
downloadrspamd-6af040cf2949ce0eebe52121efef6bb3ce4bcc54.tar.gz
rspamd-6af040cf2949ce0eebe52121efef6bb3ce4bcc54.zip
[Fix] Do not try to connect to non-supported addresses
Diffstat (limited to 'src/libserver/fuzzy_backend_redis.c')
-rw-r--r--src/libserver/fuzzy_backend_redis.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libserver/fuzzy_backend_redis.c b/src/libserver/fuzzy_backend_redis.c
index a660a8523..a44f116a8 100644
--- a/src/libserver/fuzzy_backend_redis.c
+++ b/src/libserver/fuzzy_backend_redis.c
@@ -649,6 +649,7 @@ rspamd_fuzzy_backend_check_redis (struct rspamd_fuzzy_backend *bk,
rspamd_inet_address_get_port (addr));
if (session->ctx == NULL) {
+ rspamd_upstream_fail (up);
rspamd_fuzzy_redis_session_dtor (session, TRUE);
if (cb) {
@@ -772,6 +773,7 @@ rspamd_fuzzy_backend_count_redis (struct rspamd_fuzzy_backend *bk,
rspamd_inet_address_get_port (addr));
if (session->ctx == NULL) {
+ rspamd_upstream_fail (up);
rspamd_fuzzy_redis_session_dtor (session, TRUE);
if (cb) {
@@ -894,6 +896,7 @@ rspamd_fuzzy_backend_version_redis (struct rspamd_fuzzy_backend *bk,
rspamd_inet_address_get_port (addr));
if (session->ctx == NULL) {
+ rspamd_upstream_fail (up);
rspamd_fuzzy_redis_session_dtor (session, TRUE);
if (cb) {
@@ -1326,6 +1329,7 @@ rspamd_fuzzy_backend_update_redis (struct rspamd_fuzzy_backend *bk,
rspamd_inet_address_get_port (addr));
if (session->ctx == NULL) {
+ rspamd_upstream_fail (up);
rspamd_fuzzy_redis_session_dtor (session, TRUE);
if (cb) {