diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-06 14:27:16 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-06 14:27:16 +0000 |
commit | 121308fab595f7f9ed6513925a38d653a8499107 (patch) | |
tree | 3d4c0d5a48e31f66ee67f442aa65549a925cdab6 /src/libserver | |
parent | 37573488e226c28f1d8ba518bde5c044cc1897ac (diff) | |
download | rspamd-121308fab595f7f9ed6513925a38d653a8499107.tar.gz rspamd-121308fab595f7f9ed6513925a38d653a8499107.zip |
[Fix] Fix argument returned on redis backend errors
MFH: true
Diffstat (limited to 'src/libserver')
-rw-r--r-- | src/libserver/fuzzy_backend_redis.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/libserver/fuzzy_backend_redis.c b/src/libserver/fuzzy_backend_redis.c index e62dff3f3..e791b2ed3 100644 --- a/src/libserver/fuzzy_backend_redis.c +++ b/src/libserver/fuzzy_backend_redis.c @@ -646,7 +646,7 @@ rspamd_fuzzy_backend_check_redis (struct rspamd_fuzzy_backend *bk, if (cb) { memset (&rep, 0, sizeof (rep)); - cb (&rep, subr_ud); + cb (&rep, ud); } } else { @@ -657,7 +657,7 @@ rspamd_fuzzy_backend_check_redis (struct rspamd_fuzzy_backend *bk, if (cb) { memset (&rep, 0, sizeof (rep)); - cb (&rep, subr_ud); + cb (&rep, ud); } } else { @@ -768,7 +768,7 @@ rspamd_fuzzy_backend_count_redis (struct rspamd_fuzzy_backend *bk, rspamd_fuzzy_redis_session_dtor (session); if (cb) { - cb (0, subr_ud); + cb (0, ud); } } else { @@ -778,7 +778,7 @@ rspamd_fuzzy_backend_count_redis (struct rspamd_fuzzy_backend *bk, rspamd_fuzzy_redis_session_dtor (session); if (cb) { - cb (0, subr_ud); + cb (0, ud); } } else { @@ -890,7 +890,7 @@ rspamd_fuzzy_backend_version_redis (struct rspamd_fuzzy_backend *bk, rspamd_fuzzy_redis_session_dtor (session); if (cb) { - cb (0, subr_ud); + cb (0, ud); } } else { @@ -900,7 +900,7 @@ rspamd_fuzzy_backend_version_redis (struct rspamd_fuzzy_backend *bk, rspamd_fuzzy_redis_session_dtor (session); if (cb) { - cb (0, subr_ud); + cb (0, ud); } } else { @@ -1301,7 +1301,7 @@ rspamd_fuzzy_backend_update_redis (struct rspamd_fuzzy_backend *bk, rspamd_fuzzy_redis_session_dtor (session); if (cb) { - cb (FALSE, subr_ud); + cb (FALSE, ud); } } else { @@ -1315,7 +1315,7 @@ rspamd_fuzzy_backend_update_redis (struct rspamd_fuzzy_backend *bk, session->argv_lens) != REDIS_OK) { if (cb) { - cb (FALSE, subr_ud); + cb (FALSE, ud); } rspamd_fuzzy_redis_session_dtor (session); @@ -1331,7 +1331,7 @@ rspamd_fuzzy_backend_update_redis (struct rspamd_fuzzy_backend *bk, if (!rspamd_fuzzy_update_append_command (bk, session, io_cmd, &cur_shift)) { if (cb) { - cb (FALSE, subr_ud); + cb (FALSE, ud); } rspamd_fuzzy_redis_session_dtor (session); @@ -1354,7 +1354,7 @@ rspamd_fuzzy_backend_update_redis (struct rspamd_fuzzy_backend *bk, &session->argv_lens[cur_shift - 2]) != REDIS_OK) { if (cb) { - cb (FALSE, subr_ud); + cb (FALSE, ud); } rspamd_fuzzy_redis_session_dtor (session); @@ -1372,7 +1372,7 @@ rspamd_fuzzy_backend_update_redis (struct rspamd_fuzzy_backend *bk, &session->argv_lens[cur_shift]) != REDIS_OK) { if (cb) { - cb (FALSE, subr_ud); + cb (FALSE, ud); } rspamd_fuzzy_redis_session_dtor (session); |