mirror of
https://github.com/curl/curl.git
synced 2026-07-25 19:27:17 +03:00
vquic: replace assert
Replace the hard assert in case not all data is send on UDP (which should never happen), with an error return. Closes #18495
This commit is contained in:
parent
84db7a9eae
commit
e3c06ccc66
1 changed files with 3 additions and 2 deletions
|
|
@ -186,8 +186,9 @@ static CURLcode do_sendmsg(struct Curl_cfilter *cf,
|
|||
return CURLE_SEND_ERROR;
|
||||
}
|
||||
}
|
||||
else {
|
||||
assert(pktlen == (size_t)sent);
|
||||
else if(pktlen != (size_t)sent) {
|
||||
failf(data, "sendmsg() sent only %zd/%zu bytes", sent, pktlen);
|
||||
return CURLE_SEND_ERROR;
|
||||
}
|
||||
#else
|
||||
ssize_t sent;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue