Bug 1951494 - ensure socket control is released on the socket thread a=pascalc

Original Revision: https://phabricator.services.mozilla.com/D240234

Differential Revision: https://phabricator.services.mozilla.com/D241059
This commit is contained in:
Dana Keeler 2025-03-12 07:41:52 +00:00
parent 3298ef52f1
commit 72855d5669

View file

@ -1156,6 +1156,9 @@ SSLServerCertVerificationResult::Run() {
}
mSocketControl->SetCertVerificationResult(mFinalError);
// Release this reference to the socket control so that it will be freed on
// the socket thread.
mSocketControl = nullptr;
return NS_OK;
}