[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) (159.251.88.50)
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.
code:
return (equals(this.DN, DN) & equals(this.PW, PW));
fix:
return (equals(this.DN, DN) && equals(this.PW, PW));