diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-20 17:52:55 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-20 17:52:55 +0000 |
commit | e19be6e738321b6a60caed205eadddec9343bb52 (patch) | |
tree | 3e3e36514af81561a6efcb3a4808524b7ceab253 /contrib | |
parent | 33058334aba7372dec0cad806b2fe83ee14e2f54 (diff) | |
download | rspamd-e19be6e738321b6a60caed205eadddec9343bb52.tar.gz rspamd-e19be6e738321b6a60caed205eadddec9343bb52.zip |
[Fix] Another fix for brain-damaged hiredis
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/hiredis/async.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/hiredis/async.c b/contrib/hiredis/async.c index 84c43585c..342b4838a 100644 --- a/contrib/hiredis/async.c +++ b/contrib/hiredis/async.c @@ -310,6 +310,7 @@ static void __redisAsyncFree(redisAsyncContext *ac) { if (c->flags & REDIS_FREEING) { ac->onDisconnect(ac,REDIS_OK,ac->disconnectCbdata); } else { + c->flags |= REDIS_FREEING; ac->onDisconnect(ac,(ac->err == 0) ? REDIS_OK : REDIS_ERR,ac->disconnectCbdata); } } |