aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-19 11:04:26 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-19 11:04:26 +0000
commit9634a6679cc08ec0c004ffa5989b83519b1660e0 (patch)
tree12a083f4c01ed236397d02a0cebb4548d41b60b9 /src
parent02c70c485ebb62660b0da2000f180d52e7e8bbb4 (diff)
downloadrspamd-9634a6679cc08ec0c004ffa5989b83519b1660e0.tar.gz
rspamd-9634a6679cc08ec0c004ffa5989b83519b1660e0.zip
[Minor] Disable invalid unref for inactive connections
Diffstat (limited to 'src')
-rw-r--r--src/libserver/redis_pool.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libserver/redis_pool.c b/src/libserver/redis_pool.c
index fa9573f39..1efc4f743 100644
--- a/src/libserver/redis_pool.c
+++ b/src/libserver/redis_pool.c
@@ -116,6 +116,8 @@ rspamd_redis_pool_conn_dtor (struct rspamd_redis_pool_connection *conn)
}
if (conn->ctx) {
+ /* To prevent on_disconnect here */
+ conn->active = TRUE;
g_hash_table_remove (conn->elt->pool->elts_by_ctx, conn->ctx);
redisAsyncFree (conn->ctx);
}