mirror of
https://github.com/curl/curl.git
synced 2025-03-31 16:00:35 +08:00
ws: fix CONT opcode check
Detected by Coverity. Follow-up to 930c00c259 Closes #11037
This commit is contained in:
parent
9f241a85dc
commit
bb0b245cc1
3
lib/ws.c
3
lib/ws.c
@ -353,7 +353,8 @@ static void ws_enc_info(struct ws_encoder *enc, struct Curl_easy *data,
|
||||
{
|
||||
infof(data, "WS-ENC: %s [%s%s%s payload=%zd/%zd]", msg,
|
||||
ws_frame_name_of_op(enc->firstbyte),
|
||||
(enc->firstbyte & WSBIT_OPCODE_CONT)? " CONT" : "",
|
||||
(enc->firstbyte & WSBIT_OPCODE_MASK) == WSBIT_OPCODE_CONT ?
|
||||
" CONT" : "",
|
||||
(enc->firstbyte & WSBIT_FIN)? "" : " NON-FIN",
|
||||
enc->payload_len - enc->payload_remain, enc->payload_len);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user