summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/transport
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-04-17 22:19:30 -0400
committerJames Moger <james.moger@gitblit.com>2014-04-17 23:08:07 -0400
commit81583ac83a13e1cf321494bfb50595a961dffa59 (patch)
tree29ac4412cb9d8fab11f0b0cf77d1ff24abf6cbfd /src/main/java/com/gitblit/transport
parentb37af4dacfde09036245e9d5542692850d0c7775 (diff)
downloadgitblit-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.java2
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);