From b5742523d753e23a28b1a1de60757a782989cd26 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Tue, 5 Mar 2013 00:16:49 +0000 Subject: - Apply schlabberdog's fix for log #3969, addressing Issue #1647 --- Source/SPKeychain.m | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Source/SPKeychain.m') diff --git a/Source/SPKeychain.m b/Source/SPKeychain.m index 9d9c89a5..03ba464f 100644 --- a/Source/SPKeychain.m +++ b/Source/SPKeychain.m @@ -58,6 +58,11 @@ SecKeychainAttribute attributes[4]; SecKeychainAttributeList attList; + // If a nil password was supplied, do nothing. + if (!password) { + return; + } + // Check supplied variables and replaces nils with empty strings if (!name) name = @""; if (!account) account = @""; -- cgit v1.2.3