From 7ce3081b74724787245eaa4edc34727c4d239908 Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Thu, 21 Jan 2021 20:51:06 +0800 Subject: [PATCH] protocol: fix illegal ws path error msg --- src/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol.c b/src/protocol.c index 4b832ab..a02d3ba 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -245,7 +245,7 @@ int callback_tty(struct lws *wsi, enum lws_callback_reasons reason, void *user, if (n <= 0) n = lws_hdr_copy(wsi, pss->path, sizeof(pss->path), WSI_TOKEN_HTTP_COLON_PATH); #endif if (strncmp(pss->path, endpoints.ws, n) != 0) { - lwsl_warn("refuse to serve WS client for illegal ws path: %s\n", buf); + lwsl_warn("refuse to serve WS client for illegal ws path: %s\n", pss->path); return 1; } -- 2.43.4