Work around undocumented side-effect of SecItemAdd...

Esse commit está contido em:
Michael R Sweet
2016-04-11 18:36:42 -04:00
commit e34d1ec4b9
+1 -1
Ver Arquivo
@@ -161,7 +161,7 @@ cupsMakeServerCredentials(
CFDictionaryRef itemAttrs = CFDictionaryCreate(kCFAllocatorDefault, itemKeys, itemValues, sizeof(itemKeys) / sizeof(itemKeys[0]), &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
err = SecItemAdd(itemAttrs, NULL);
CFRelease(itemAttrs);
/* SecItemAdd consumes itemAttrs... */
if (err != noErr)
goto cleanup;