diff options
author | rowanbeentje <rowan@beent.je> | 2009-05-29 00:44:13 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-05-29 00:44:13 +0000 |
commit | 9f715594d876089945cc915e9e5cfd48d93e5161 (patch) | |
tree | 8881f2674ed77752a8c062d03bfa2a1e568d2af4 /Source/SPSSHTunnel.m | |
parent | 3e63a4da4bfc0953f6c1919807e5f59ef9628d1a (diff) | |
download | sequelpro-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 (!)
Diffstat (limited to 'Source/SPSSHTunnel.m')
-rw-r--r-- | Source/SPSSHTunnel.m | 2 |
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; } |