ngtcp2: fix assertion failure on EMSGSIZE

Closes #8958
This commit is contained in:
Tatsuhiro Tsujikawa 2022-06-05 10:12:36 +09:00 committed by Daniel Stenberg
parent 2bd75e5686
commit 298c1dfc7b
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1918,8 +1918,9 @@ static CURLcode do_sendmsg(size_t *psent, struct Curl_easy *data, int sockfd,
return CURLE_SEND_ERROR;
}
}
assert(pktlen == (size_t)sent);
else {
assert(pktlen == (size_t)sent);
}
*psent = pktlen;