jumaris / connectbot

Automatically exported from code.google.com/p/connectbot
Apache License 2.0
1 stars 0 forks source link

Typo in handleAddKey() #89

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Import a key with a password (or generate on with a non-empty password).
2. Try to use it. 

The test for encrypted key is inverted in handleAddKey.
It needs to be "if (pubkey.isEncrypted())"
instead of "if (!pubkey.isEncrypted())".

The attached patch fix the bug for me. I tested the patched version in the
emulator and alos in my own phone.

Original issue reported on code.google.com by yasl...@gmail.com on 29 Nov 2008 at 9:46

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks, fixed in r145

Original comment by kenny@the-b.org on 11 Dec 2008 at 10:52