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
1 changed files with 7 additions and 1 deletions

View File

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