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

(ITS#6505) ldap_search_* functions missing const qualifiers

Full_Name: Eric Haszlakiewicz
Version: cvsweb
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

The ldap_search_ext, ldap_search_ext_s, ldap_search, ldap_search_s and
ldap_search_st functions should use const for the attrs parameter.  I checked
revision 1.88 of libraries/libldap/search.c and it appears that those strings do
not get modified so there is no reason that a list of string constants couldn't
be passed in.

I have a short patch that changes libraries/libldap/search.c and include/ldap.h
(rev 1.349) to add the const qualifier.