Commit 1f55170b authored by antirez's avatar antirez
Browse files

Modules: fix client blocking calls access to invalid struct field.

We already have reference to the client pointer, no need to access the
already freed structure.

Close #3634.
parent 5b7d42ff
......@@ -3183,7 +3183,7 @@ void moduleHandleBlockedClients(void) {
if (bc->privdata && bc->free_privdata)
bc->free_privdata(bc->privdata);
zfree(bc);
if (c != NULL) unblockClient(bc->client);
if (c != NULL) unblockClient(c);
/* Lock again before to iterate the loop. */
pthread_mutex_lock(&moduleUnblockedClientsMutex);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment