mirror of
https://github.com/curl/curl.git
synced 2026-05-30 04:07:27 +03:00
ws: fix CONT opcode check
Detected by Coverity. Follow-up to 930c00c259
Closes #11037
This commit is contained in:
parent
9f241a85dc
commit
bb0b245cc1
1 changed files with 2 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue