1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-23 23:19:09 +00:00

Avoid deadlocks in brain server

This commit is contained in:
Jukka Ojanen 2021-07-08 12:43:29 +03:00
parent 0edab2b20f
commit d93d130b6d

View File

@ -2245,6 +2245,8 @@ void *brain_server_handle_client (void *p)
brain_server_dbs->client_slots[client_idx] = 0;
hc_thread_mutex_unlock (brain_server_dbs->mux_dbs);
close (client_fd);
return NULL;
@ -2279,6 +2281,8 @@ void *brain_server_handle_client (void *p)
brain_server_dbs->client_slots[client_idx] = 0;
hc_thread_mutex_unlock (brain_server_dbs->mux_dbs);
close (client_fd);
return NULL;
@ -2318,6 +2322,10 @@ void *brain_server_handle_client (void *p)
{
brain_logging (stderr, 0, "%s\n", MSG_ENOMEM);
brain_server_dbs->client_slots[client_idx] = 0;
close (client_fd);
return NULL;
}