Bug 529485, PSM crashes [@ ProcessAuthKeyId ] when CERT_DecodeAuthKeyID(arena, extData) fails. Fix suggested by timeless, minimal patch by me. r=kaie/bsmith. a2.0=dolske

This commit is contained in:
Kai Engert 2011-01-13 23:33:37 +01:00
parent eb446b3509
commit cf5cea380b

View File

@ -1274,9 +1274,13 @@ ProcessAuthKeyId(SECItem *extData,
arena = PORT_NewArena(DER_DEFAULT_CHUNKSIZE);
if (!arena)
return NS_ERROR_FAILURE;
return NS_ERROR_OUT_OF_MEMORY;
ret = CERT_DecodeAuthKeyID (arena, extData);
if (!ret) {
rv = NS_ERROR_FAILURE;
goto finish;
}
if (ret->keyID.len > 0) {
nssComponent->GetPIPNSSBundleString("CertDumpKeyID", local);