directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject directory-kerby git commit: DIRKRB-586 - NPE in KdcHandler on an Exception
Date Wed, 15 Jun 2016 16:20:13 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/trunk fc0328bc0 -> 952938a69


DIRKRB-586 - NPE in KdcHandler on an Exception


Project: http://git-wip-us.apache.org/repos/asf/directory-kerby/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-kerby/commit/952938a6
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/952938a6
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/952938a6

Branch: refs/heads/trunk
Commit: 952938a698abce30ca8fc859750a832332e672c9
Parents: fc0328b
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Wed Jun 15 17:19:59 2016 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Wed Jun 15 17:19:59 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/kerby/kerberos/kerb/server/KdcHandler.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/952938a6/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/KdcHandler.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/KdcHandler.java
b/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/KdcHandler.java
index 8a1a21a..d04a306 100644
--- a/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/KdcHandler.java
+++ b/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/KdcHandler.java
@@ -140,7 +140,7 @@ public class KdcHandler {
                     serverPrincipal.setRealm(kdcRequest.getKdcReq().getReqBody().getRealm());
                     krbError.setSname(serverPrincipal);
                 }
-                if (e.getKrbErrorCode().equals(KrbErrorCode.KRB_AP_ERR_BAD_INTEGRITY)) {
+                if (KrbErrorCode.KRB_AP_ERR_BAD_INTEGRITY.equals(e.getKrbErrorCode())) {
                     krbError.setEtext("PREAUTH_FAILED");
                 } else {
                     krbError.setEtext(e.getMessage());


Mime
View raw message