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

(ITS#5720) ldap_str2charray calls ldap_utf8_strchr incorrectly



Full_Name: Quanah Gibson-Mount
Version: 2.3, 2.4, HEAD
OS: NA
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (98.207.132.222)


The definition for ldap_utf8_strchr is:

utf-8.c:char * (ldap_utf8_strchr)( const char *str, const char *chr )

I.e., string, character, as normal libc functions.

However, at line 125 in charray.c, it is called as:

                if ( ldap_utf8_strchr( brkstr, s ) != NULL ) {

This order appears to be incorrect.

--Quanah