1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-23 15:18:16 +00:00

Merge pull request #2870 from jtojanen/fixes

Avoid deadlocks in brain server
This commit is contained in:
Jens Steube 2021-07-09 08:43:18 +02:00 committed by GitHub
commit d6042035fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2251,6 +2251,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;
@ -2285,6 +2287,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;
@ -2324,6 +2328,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;
}