Ensure client is not accessed since it's closed and freed under handle_tcp_close().
@@ -2522,7 +2522,6 @@ ws_broadcast_fifo (void *value, void *user_data) {
LOG (("No headers. Closing %d [%s]\n", client->listener, client->remote_ip));
handle_tcp_close (client->listener, client, server);
- client->status = WS_CLOSE;
return 0;
}
@@ -2545,7 +2544,6 @@ ws_send_strict_fifo_to_client (WSServer * server, int listener, WSPacket * pa) {
LOG (("No headers. Closing %d [%s]\n", client->listener, client->remote_ip));
handle_tcp_close (client->listener, client, server);
- client->status = WS_CLOSE;
return;
}
ws_send_data (client, pa->type, pa->data, pa->len);
