]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Another fix for brain-damaged hiredis
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 20 Nov 2016 17:52:55 +0000 (17:52 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 20 Nov 2016 17:52:55 +0000 (17:52 +0000)
contrib/hiredis/async.c

index 84c43585c4d4410106a91a6c7a2fe2d8923bc0c4..342b4838a6fe1672cee9f25dbdeb6e585b277cc1 100644 (file)
@@ -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);
         }
     }