Bug 1940508 - Add null check to HandshakeDoneInternal before using mTransaction r=necko-reviewers,jesup a=RyanVM

Differential Revision: https://phabricator.services.mozilla.com/D233563
This commit is contained in:
Valentin Gosu 2025-01-08 22:45:14 +00:00
parent 9d4d229f61
commit dfa27511a2

View file

@ -2436,7 +2436,9 @@ void nsHttpConnection::HandshakeDoneInternal() {
if (!transactionNPN.IsEmpty() && negotiatedNPN != transactionNPN) { if (!transactionNPN.IsEmpty() && negotiatedNPN != transactionNPN) {
LOG(("Resetting connection due to mismatched NPN token")); LOG(("Resetting connection due to mismatched NPN token"));
DontReuse(); DontReuse();
mTransaction->Close(NS_ERROR_NET_RESET); if (mTransaction) {
mTransaction->Close(NS_ERROR_NET_RESET);
}
return; return;
} }