8000 memset zero _clients struct for server · Gefanxe/arduinoWebSockets@c5461d5 · GitHub
[go: up one dir, main page]

Skip to content

Commit c5461d5

Browse files
authored
memset zero _clients struct for server
fixes Links2004#244
1 parent b87bce4 commit c5461d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/WebSocketsServer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ WebSocketsServer::WebSocketsServer(uint16_t port, String origin, String protocol
4343
_httpHeaderValidationFunc = NULL;
4444
_mandatoryHttpHeaders = NULL;
4545
_mandatoryHttpHeaderCount = 0;
46+
47+
memset(&_clients[0], 0x00, (sizeof(WSclient_t) * WEBSOCKETS_SERVER_CLIENT_MAX));
4648
}
4749

4850

0 commit comments

Comments
 (0)
0