Commit c4d34f9d authored by David Fuhrmann's avatar David Fuhrmann

keychain: Store port as integer

The value for that key must be an NSNumber according to docu.
This fixes a crash on 10.7 in find().
parent 598793b9
......@@ -269,7 +269,7 @@ static void SetAttributesForQuery(const char *const ppsz_values[KEY_MAX], NSMuta
[query setObject:[NSString stringWithUTF8String:psz_path] forKey:(__bridge id)kSecAttrPath];
if (psz_port) {
[query setObject:[NSString stringWithUTF8String:psz_port] forKey:(__bridge id)kSecAttrPort];
[query setObject:[NSNumber numberWithInt:atoi(psz_port)] forKey:(__bridge id)kSecAttrPort];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment