Bug 930398 - Use ScopedCERTCertificate instead. r=keeler

This commit is contained in:
Chuck Lee 2013-11-08 13:52:31 +08:00
parent 05f29ae8f2
commit 62e955a598

View File

@ -327,7 +327,7 @@ KeyStore::ReceiveSocketData(nsAutoPtr<UnixSocketRawData>& aMessage)
const char *certName = (const char *)mHandlerInfo.param[0].data;
// Get cert from NSS by name
CERTCertificate *cert = CERT_FindCertByNickname(certdb, certName);
ScopedCERTCertificate cert = CERT_FindCertByNickname(certdb, certName);
if (!cert) {
break;
}