aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-05-29 00:44:13 +0000
committerrowanbeentje <rowan@beent.je>2009-05-29 00:44:13 +0000
commit9f715594d876089945cc915e9e5cfd48d93e5161 (patch)
tree8881f2674ed77752a8c062d03bfa2a1e568d2af4
parent3e63a4da4bfc0953f6c1919807e5f59ef9628d1a (diff)
downloadsequelpro-9f715594d876089945cc915e9e5cfd48d93e5161.tar.gz
sequelpro-9f715594d876089945cc915e9e5cfd48d93e5161.tar.bz2
sequelpro-9f715594d876089945cc915e9e5cfd48d93e5161.zip
- Fix SSH tunnel treatment of temporary (non-Keychain) passwords by correctly comparing hashes and not hash pointers (!)
-rw-r--r--Source/SPSSHTunnel.m2
1 files changed, 1 insertions, 1 deletions
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;
}