]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ws: clarify an error message
authorDaniel Stenberg <daniel@haxx.se>
Sat, 20 Sep 2025 22:09:09 +0000 (00:09 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 21 Sep 2025 07:41:17 +0000 (09:41 +0200)
Instead of:

 "[WS] frame length longer than 64 signed not supported"

Use:

 "[WS] frame length longer than 63 bit not supported"

Closes #18654

lib/ws.c

index 00fdeb3e97f8573a7eb8e9b47d3450cac2d8cb8b..c840961d10171be4de07642754fcee819acfc584 100644 (file)
--- a/lib/ws.c
+++ b/lib/ws.c
@@ -453,7 +453,7 @@ static CURLcode ws_dec_read_head(struct ws_decoder *dec,
       break;
     case 10:
       if(dec->head[2] > 127) {
-        failf(data, "[WS] frame length longer than 64 signed not supported");
+        failf(data, "[WS] frame length longer than 63 bit not supported");
         return CURLE_RECV_ERROR;
       }
       dec->payload_len = ((curl_off_t)dec->head[2] << 56) |