You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by co...@apache.org on 2019/12/16 18:19:37 UTC
[directory-kerby] branch trunk updated: Another trivial fix
This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/directory-kerby.git
The following commit(s) were added to refs/heads/trunk by this push:
new 37c4791 Another trivial fix
37c4791 is described below
commit 37c479186a36840991dc93d9b2b3c3ef2ed235b4
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Mon Dec 16 18:19:23 2019 +0000
Another trivial fix
---
.../apache/kerby/kerberos/kerb/client/ClientUtil.java | 18 +++++++-----------
1 file changed, 7 insertions(+), 11 deletions(-)
diff --git a/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/ClientUtil.java b/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/ClientUtil.java
index da7362b..39cc977 100644
--- a/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/ClientUtil.java
+++ b/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/ClientUtil.java
@@ -53,18 +53,14 @@ public final class ClientUtil {
throw new KrbException(KRB5_FILE_NAME + " not found");
}
- if (confFile != null && confFile.exists()) {
- KrbConfig krbConfig = new KrbConfig();
- try {
- krbConfig.addKrb5Config(confFile);
- return krbConfig;
- } catch (IOException e) {
- throw new KrbException("Failed to load krb config "
- + confFile.getAbsolutePath());
- }
+ KrbConfig krbConfig = new KrbConfig();
+ try {
+ krbConfig.addKrb5Config(confFile);
+ return krbConfig;
+ } catch (IOException e) {
+ throw new KrbException("Failed to load krb config "
+ + confFile.getAbsolutePath());
}
-
- return null;
}
/**