Merge remote-tracking branch 'origin/tracking' into custom

This commit is contained in:
roytam1 2025-04-30 23:06:47 +08:00
commit 6792dc4b66
68 changed files with 474 additions and 1033 deletions

View file

@ -333,10 +333,11 @@ nssPKIObject_GetInstances(
{
nssCryptokiObject **instances = NULL;
PRUint32 i;
nssPKIObject_Lock(object);
if (object->numInstances == 0) {
nssPKIObject_Unlock(object);
return (nssCryptokiObject **)NULL;
}
nssPKIObject_Lock(object);
instances = nss_ZNEWARRAY(NULL, nssCryptokiObject *,
object->numInstances + 1);
if (instances) {