Ticket #47906: certsync.m.patch

File certsync.m.patch, 754 bytes (added by alexey.naidyonov@…, 9 years ago)
  • certsync.m

    old new  
    316316                    SInt32 settingsResult;
    317317
    318318                    settingsResultNum = (CFNumberRef) [trustProps objectForKey: (id) kSecTrustSettingsResult];
     319                    if (settingsResultNum == nil) {
     320                        /* "If this key is not present, a default value of kSecTrustSettingsResultTrustRoot is assumed" */
     321                        [trusted addObject: certObj];
     322                        break;
     323                    }
    319324                    CFNumberGetValue(settingsResultNum, kCFNumberSInt32Type, &settingsResult);
    320325
    321326                    /* If a root, add to the result set */