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.
This commit is contained in:
parent
b2dc3a3d9c
commit
67a41fe316
@ -3183,7 +3183,7 @@ void moduleHandleBlockedClients(void) {
|
|||||||
if (bc->privdata && bc->free_privdata)
|
if (bc->privdata && bc->free_privdata)
|
||||||
bc->free_privdata(bc->privdata);
|
bc->free_privdata(bc->privdata);
|
||||||
zfree(bc);
|
zfree(bc);
|
||||||
if (c != NULL) unblockClient(bc->client);
|
if (c != NULL) unblockClient(c);
|
||||||
|
|
||||||
/* Lock again before to iterate the loop. */
|
/* Lock again before to iterate the loop. */
|
||||||
pthread_mutex_lock(&moduleUnblockedClientsMutex);
|
pthread_mutex_lock(&moduleUnblockedClientsMutex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user