From 7e5c298d90d7586f0078bc5cdf80dc31040cae0e Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Mon, 17 Aug 2020 17:11:43 +0200 Subject: [PATCH] websocket: avoid nullptr deref --- lib/nodes/websocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nodes/websocket.cpp b/lib/nodes/websocket.cpp index ea923bf26..7b4aca6ac 100644 --- a/lib/nodes/websocket.cpp +++ b/lib/nodes/websocket.cpp @@ -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;