rspamd_upstream_fail (rt->selected);
rt->conn_state = RSPAMD_REDIS_TIMEDOUT;
redisAsyncFree (rt->redis);
+ rt->redis = NULL;
}
/* Called when we have connected to the redis server and got stats */
if (rt->conn_state == RSPAMD_REDIS_CONNECTED) {
event_del (&rt->timeout_event);
redisAsyncFree (rt->redis);
+ rt->redis = NULL;
rt->conn_state = RSPAMD_REDIS_DISCONNECTED;
}
if (rt->conn_state == RSPAMD_REDIS_CONNECTED) {
event_del (&rt->timeout_event);
redisAsyncFree (rt->redis);
+ rt->redis = NULL;
rt->conn_state = RSPAMD_REDIS_DISCONNECTED;
}
if (rt->redis) {
event_del (&rt->timeout_event);
redisAsyncFree (rt->redis);
+ rt->redis = NULL;
rt->conn_state = RSPAMD_REDIS_DISCONNECTED;
}