mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
websocket: avoid nullptr deref
This commit is contained in:
parent
b77f223155
commit
7e5c298d90
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ int websocket_protocol_cb(struct lws *wsi, enum lws_callback_reasons reason, voi
|
|||
case LWS_CALLBACK_CLIENT_CONNECTION_ERROR:
|
||||
c->state = websocket_connection::State::ERROR;
|
||||
|
||||
warning("Failed to establish WebSocket connection: %s, reason=%s", websocket_connection_name(c), in ? (char *) in : "unkown");
|
||||
warning("Failed to establish WebSocket connection: reason=%s", in ? (char *) in : "unknown");
|
||||
|
||||
return -1;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue