mirror of
https://github.com/transmission/transmission
synced 2025-03-09 13:50:00 +00:00
typo caused only a single character of a password to be stored in the keychain
This commit is contained in:
parent
842293a1c8
commit
87f0b40589
1 changed files with 1 additions and 1 deletions
|
@ -1161,7 +1161,7 @@
|
|||
- (void) setKeychainPassword: (const char *) password forService: (const char *) service username: (const char *) username
|
||||
{
|
||||
SecKeychainItemRef item = NULL;
|
||||
NSUInteger passwordLength = strlen(password) > 0;
|
||||
NSUInteger passwordLength = strlen(password);
|
||||
|
||||
OSStatus result = SecKeychainFindGenericPassword(NULL, strlen(service), service, strlen(username), username, NULL, NULL, &item);
|
||||
if (result == noErr && item)
|
||||
|
|
Loading…
Add table
Reference in a new issue