1
0
Fork 0
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:
Steffen Vogel 2020-08-17 17:11:43 +02:00
parent b77f223155
commit 7e5c298d90

View file

@ -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;