From 624ff30bfcbd16ca2ec2f3c3fa8a62008f75e057 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Mon, 13 Jan 2025 20:29:31 +0100 Subject: [PATCH] [network] Don't try to use non-existing connections. --- netwerk/protocol/http/nsHttpTransaction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netwerk/protocol/http/nsHttpTransaction.cpp b/netwerk/protocol/http/nsHttpTransaction.cpp index 6c6865c239..43c229897a 100644 --- a/netwerk/protocol/http/nsHttpTransaction.cpp +++ b/netwerk/protocol/http/nsHttpTransaction.cpp @@ -762,7 +762,7 @@ nsHttpTransaction::ReadSegments(nsAHttpSegmentReader *reader, return mStatus; } - if (!mConnected && !m0RTTInProgress) { + if (mConnection && !mConnected && !m0RTTInProgress) { mConnected = true; nsCOMPtr info; mConnection->GetSecurityInfo(getter_AddRefs(info));