[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#3991) [JLDAP] DNPWequals uses wrong operator

Full_Name: John Glynn
Version: CVS HEAD
OS: java
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

com.novell.ldap.connectionpool.SharedConnections method DNPWequals uses boolean
bitwise AND operator when it should be using logical AND operator in order to
get benefits of short-circuit operation.

        return (equals(this.DN, DN) & equals(this.PW, PW));
        return (equals(this.DN, DN) && equals(this.PW, PW));