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

Re: commit: ldap/servers/slapd ad.c



Pierangelo Masarati wrote:
Update of /repo/OpenLDAP/pkg/ldap/servers/slapd

Modified Files:
	ad.c  1.95 -> 1.96

Log Message:
Fix strchrlen running past end of berval

in include/lber_pvt.h there are some ber_bvchr*() macros that may be of help there. I remember there was some discussion about their unhappy naming. Feel free to rework them, as they should be essentially unused right now.

I looked at those, but in this case it was more convenient to work with a pointer to the end of the value (which stays constant through the loop iterations) rather than the usual berval.bv_len.


--
 -- Howard Chu
 Chief Architect, Symas Corp.  http://www.symas.com
 Director, Highland Sun        http://highlandsun.com/hyc
 OpenLDAP Core Team            http://www.openldap.org/project/