memset zero _clients struct for server

fixes #244
This commit is contained in:
Markus
2017-10-06 18:30:05 +02:00
committed by GitHub
parent b87bce4466
commit c5461d5779

View File

@ -43,6 +43,8 @@ WebSocketsServer::WebSocketsServer(uint16_t port, String origin, String protocol
_httpHeaderValidationFunc = NULL;
_mandatoryHttpHeaders = NULL;
_mandatoryHttpHeaderCount = 0;
memset(&_clients[0], 0x00, (sizeof(WSclient_t) * WEBSOCKETS_SERVER_CLIENT_MAX));
}