mirror of
https://github.com/curl/curl.git
synced 2026-08-26 15:33:34 +03:00
url.c: fixed DEBUGASSERT() for WinSock workaround
If buffer is allocated, but nothing is received during prereceive stage, than number of processed bytes must be zero. Closes #778
This commit is contained in:
parent
27a6393cee
commit
2242384911
1 changed files with 3 additions and 1 deletions
|
|
@ -2701,7 +2701,9 @@ static void conn_reset_postponed_data(struct connectdata *conn, int num)
|
|||
if(psnd->buffer) {
|
||||
DEBUGASSERT(psnd->allocated_size > 0);
|
||||
DEBUGASSERT(psnd->recv_size <= psnd->allocated_size);
|
||||
DEBUGASSERT(psnd->recv_processed < psnd->recv_size);
|
||||
DEBUGASSERT(psnd->recv_size ?
|
||||
(psnd->recv_processed < psnd->recv_size) :
|
||||
(psnd->recv_processed == 0));
|
||||
DEBUGASSERT(psnd->bindsock != CURL_SOCKET_BAD);
|
||||
free(psnd->buffer);
|
||||
psnd->buffer = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue