Skip to content

Commit 7e6d483

Browse files
author
Kanishk Panwar
committed
fixed identity error
1 parent b3de071 commit 7e6d483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ADALiOS/ADALiOS/ADWorkPlaceJoinUtil.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ - (ADRegistrationInformation*)getRegistrationInformation: (NSString*) sharedAcce
107107
OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef)identityAttr, (CFTypeRef*)&identity);
108108

109109
//Get the identity
110-
if(status != errSecSuccess && identity)
110+
if(status == errSecSuccess && identity)
111111
{
112112
AD_LOG_VERBOSE(@"Found identity in keychain", nil);
113113
//Get the certificate and data

0 commit comments

Comments
 (0)