diff options
author | rowanbeentje <rowan@beent.je> | 2009-08-08 00:52:28 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-08-08 00:52:28 +0000 |
commit | 4e86aae1cd84904e40f3cd7dab3c4cc72bab77dc (patch) | |
tree | 00cc5cb9845afcff14f8330dbca0fcde11f50c88 /Source/SPConnectionController.m | |
parent | 323d1dce6647a628ad8abc69fa06b03c8d9384fc (diff) | |
download | sequelpro-4e86aae1cd84904e40f3cd7dab3c4cc72bab77dc.tar.gz sequelpro-4e86aae1cd84904e40f3cd7dab3c4cc72bab77dc.tar.bz2 sequelpro-4e86aae1cd84904e40f3cd7dab3c4cc72bab77dc.zip |
- Fix SSH tunnel support for private/public keys following framework upgrade changes
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r-- | Source/SPConnectionController.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index 6670c732..67f7e915 100644 --- a/Source/SPConnectionController.m +++ b/Source/SPConnectionController.m @@ -219,7 +219,7 @@ // Add keychain or plaintext password as appropriate - note the checks in initiateConnection. if (connectionSSHKeychainItemName) { [sshTunnel setPasswordKeychainName:connectionSSHKeychainItemName account:connectionSSHKeychainItemAccount]; - } else { + } else if (sshPassword) { [sshTunnel setPassword:[self sshPassword]]; } @@ -281,7 +281,7 @@ } // Only set the password if there is no Keychain item set. The connection will ask the delegate for passwords in the Keychain. - if (!connectionKeychainItemName) { + if (!connectionKeychainItemName && [self password]) { [mySQLConnection setPassword:[self password]]; } |