From 9f715594d876089945cc915e9e5cfd48d93e5161 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Fri, 29 May 2009 00:44:13 +0000 Subject: - Fix SSH tunnel treatment of temporary (non-Keychain) passwords by correctly comparing hashes and not hash pointers (!) --- Source/SPSSHTunnel.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/SPSSHTunnel.m') diff --git a/Source/SPSSHTunnel.m b/Source/SPSSHTunnel.m index 619657c3..20c6b112 100644 --- a/Source/SPSSHTunnel.m +++ b/Source/SPSSHTunnel.m @@ -352,7 +352,7 @@ - (NSString *)getPasswordWithVerificationHash:(NSString *)theHash { if (passwordInKeychain) return nil; - if (theHash != passwordConnectionVerifyHash) return nil; + if (![theHash isEqualToString:passwordConnectionVerifyHash]) return nil; return password; } -- cgit v1.2.3