Skip to content

Commit b22690d

Browse files
committed
quic: Fix crash if queue_ is nullptr
1 parent 3893c38 commit b22690d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/quic/streams.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ class Stream::Outbound final : public MemoryRetainer {
406406
// we need to clear all pending next's from the queue, as it holds pointers
407407
// to Stream and Session, which will be invalidated and may cause use after
408408
// free otherwise
409-
queue_->clearPendingNext();
409+
if (queue_) queue_->clearPendingNext();
410410
}
411411

412412
void Acknowledge(size_t amount) {

0 commit comments

Comments
 (0)