mirror of
https://github.com/curl/curl.git
synced 2026-07-28 13:03:07 +03:00
ws: fix a blocking curl_ws_send() to report written length correctly
Fixes #21372 Reported-by: Yiwei Hou Clkoses #21373
This commit is contained in:
parent
9e38e06769
commit
ebed4aaf01
1 changed files with 2 additions and 0 deletions
2
lib/ws.c
2
lib/ws.c
|
|
@ -1749,6 +1749,8 @@ static CURLcode ws_send_raw(struct Curl_easy *data, const void *buffer,
|
|||
if(result)
|
||||
return result;
|
||||
result = ws_send_raw_blocking(data, ws, buffer, buflen);
|
||||
if(!result)
|
||||
*pnwritten = buflen;
|
||||
}
|
||||
else {
|
||||
/* We need any pending data to be sent or EAGAIN this call. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue