forked from mirrors/gecko-dev
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:
parent
9d4d229f61
commit
dfa27511a2
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue