From: markt Date: Mon, 14 Feb 2011 09:53:24 +0000 (+0000) Subject: Correctly test for no attributes X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4ac68a13ee59b627fe4b0d750c4b0fb155b82358;p=tomcat7.0 Correctly test for no attributes git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1070420 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/realm/JNDIRealm.java b/java/org/apache/catalina/realm/JNDIRealm.java index 2d316d473..21ba4e926 100644 --- a/java/org/apache/catalina/realm/JNDIRealm.java +++ b/java/org/apache/catalina/realm/JNDIRealm.java @@ -1246,7 +1246,7 @@ public class JNDIRealm extends RealmBase { throws NamingException { // If no attributes are requested, no need to look for them - if (attrIds == null || attrIds.length > 0) { + if (attrIds == null || attrIds.length == 0) { return new User(username, dn, null, null); }