ws: remove bad assert

Reported-by: Stanley Wucw
Fixes #10347
Closes #10366
This commit is contained in:
Daniel Stenberg 2023-01-30 09:35:23 +01:00
parent fc10d86011
commit 097544959a
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -479,7 +479,6 @@ CURL_EXTERN CURLcode curl_ws_recv(struct Curl_easy *data, void *buffer,
/* update buffer and frame info */
wsp->frame.offset += datalen;
DEBUGASSERT(wsp->frame.bytesleft >= (curl_off_t)datalen);
if(wsp->frame.bytesleft)
wsp->frame.bytesleft -= datalen;
DEBUGASSERT(datalen <= wsp->stillblen);