m) Fix: quic server assert failed with special request (#403)

Co-authored-by: wangfuyu <ivanfywang@gmail.com>
This commit is contained in:
wangfuyu 2022-08-03 03:43:40 +08:00 committed by GitHub
parent d9b2c37837
commit 43b1739859
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1598,7 +1598,13 @@ stream_readf (struct lsquic_stream *stream,
errno = EBADMSG; errno = EBADMSG;
return -1; return -1;
} }
assert(stream->uh);
if (!stream->uh)
{
LSQ_DEBUG("cannot read: headers not available");
errno = EBADMSG;
return -1;
}
} }
else else
{ {