mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +09:00
Ensure we got an nsISSLStatus when deserializing in TransportSecurityInfo.
This commit is contained in:
parent
3757eafab3
commit
55c45dc7f2
2 changed files with 92 additions and 1 deletions
|
|
@ -429,7 +429,12 @@ TransportSecurityInfo::Read(nsIObjectInputStream* stream)
|
|||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
mSSLStatus = BitwiseCast<nsSSLStatus*, nsISupports*>(supports.get());
|
||||
nsCOMPtr<nsISSLStatus> castGuard(do_QueryInterface(supports));
|
||||
if (castGuard) {
|
||||
mSSLStatus = BitwiseCast<nsSSLStatus*, nsISSLStatus*>(castGuard.get());
|
||||
} else {
|
||||
mSSLStatus = nullptr;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsISupports> failedCertChainSupports;
|
||||
rv = NS_ReadOptionalObject(stream, true, getter_AddRefs(failedCertChainSupports));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue