diff options
author | James Moger <james.moger@gitblit.com> | 2014-04-17 22:19:30 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-04-17 23:08:07 -0400 |
commit | 81583ac83a13e1cf321494bfb50595a961dffa59 (patch) | |
tree | 29ac4412cb9d8fab11f0b0cf77d1ff24abf6cbfd /src/main/java/com/gitblit/transport | |
parent | b37af4dacfde09036245e9d5542692850d0c7775 (diff) | |
download | gitblit-81583ac83a13e1cf321494bfb50595a961dffa59.tar.gz gitblit-81583ac83a13e1cf321494bfb50595a961dffa59.zip |
[findbugs] Simplify the SshKey <-> PublicKey comparison
Diffstat (limited to 'src/main/java/com/gitblit/transport')
-rw-r--r-- | src/main/java/com/gitblit/transport/ssh/CachingPublicKeyAuthenticator.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/transport/ssh/CachingPublicKeyAuthenticator.java b/src/main/java/com/gitblit/transport/ssh/CachingPublicKeyAuthenticator.java index 9974d261..e804a0da 100644 --- a/src/main/java/com/gitblit/transport/ssh/CachingPublicKeyAuthenticator.java +++ b/src/main/java/com/gitblit/transport/ssh/CachingPublicKeyAuthenticator.java @@ -83,7 +83,7 @@ public class CachingPublicKeyAuthenticator implements PublickeyAuthenticator, Se for (SshKey key : keys) { log.debug("auth compare to {}", key.getFingerprint()); - if (key.equals(suppliedKey)) { + if (key.getPublicKey().equals(suppliedKey)) { UserModel user = authManager.authenticate(username, key); if (user != null) { client.setUser(user); |