зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1168048 - Avoid potential null-pointer dereferencing in nsNSSCertificateDB r=keeler
--HG-- extra : histedit_source : 63ddf50ccbd79eb320c52aa47959f76a8b247e21
This commit is contained in:
Родитель
9fa183e323
Коммит
b24a26ecdc
|
@ -937,6 +937,7 @@ loser:
|
|||
NS_IMETHODIMP
|
||||
nsNSSCertificateDB::DeleteCertificate(nsIX509Cert *aCert)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aCert);
|
||||
nsNSSShutDownPreventionLock locker;
|
||||
if (isAlreadyShutDown()) {
|
||||
return NS_ERROR_NOT_AVAILABLE;
|
||||
|
@ -980,6 +981,7 @@ nsNSSCertificateDB::SetCertTrust(nsIX509Cert *cert,
|
|||
uint32_t type,
|
||||
uint32_t trusted)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(cert);
|
||||
nsNSSShutDownPreventionLock locker;
|
||||
if (isAlreadyShutDown()) {
|
||||
return NS_ERROR_NOT_AVAILABLE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче