diff options
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/org/connectbot/transport/SSH.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/app/src/main/java/org/connectbot/transport/SSH.java b/app/src/main/java/org/connectbot/transport/SSH.java index 1a7ef91..4bad2f1 100644 --- a/app/src/main/java/org/connectbot/transport/SSH.java +++ b/app/src/main/java/org/connectbot/transport/SSH.java @@ -193,15 +193,17 @@ public class SSH extends AbsTransport implements ConnectionMonitor, InteractiveC // Users have no way to delete keys, so we'll prompt them for now. result = bridge.promptHelper.requestBooleanPrompt(null, manager.res.getString(R.string.prompt_continue_connecting)); - if (result == null) return false; - if (result.booleanValue()) { + if (result != null && result.booleanValue()) { // save this key in known database manager.hostdb.saveKnownHost(hostname, port, serverHostKeyAlgorithm, serverHostKey); + return true; + } else { + return false; } - return result.booleanValue(); - default: - return false; + default: + bridge.outputLine(manager.res.getString(R.string.terminal_failed, algorithmName, fingerprint)); + return false; } } |