mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
websocket: fix access to uninitialized memoryu
This commit is contained in:
parent
0252ee7d98
commit
293ffea887
1 changed files with 2 additions and 3 deletions
|
@ -183,8 +183,6 @@ int websocket_protocol_cb(struct lws *wsi, enum lws_callback_reasons reason, voi
|
|||
c->wsi = wsi;
|
||||
c->state = websocket_connection::State::ESTABLISHED;
|
||||
|
||||
info("Established WebSocket connection: %s", websocket_connection_name(c));
|
||||
|
||||
if (reason == LWS_CALLBACK_CLIENT_ESTABLISHED)
|
||||
c->mode = websocket_connection::Mode::CLIENT;
|
||||
else {
|
||||
|
@ -244,7 +242,8 @@ int websocket_protocol_cb(struct lws *wsi, enum lws_callback_reasons reason, voi
|
|||
|
||||
vlist_push(&connections, c);
|
||||
|
||||
debug(LOG_WEBSOCKET | 10, "Initialized WebSocket connection: %s", websocket_connection_name(c));
|
||||
info("Established WebSocket connection: %s", websocket_connection_name(c));
|
||||
|
||||
break;
|
||||
|
||||
case LWS_CALLBACK_CLIENT_CONNECTION_ERROR:
|
||||
|
|
Loading…
Add table
Reference in a new issue