[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: ldap_get_values_len(3) array not null terminated
> vals = ldap_get_values_len(ldap, entry, attr);
> for (vi = 0; vals[vi]; vi++) {
> struct berval *val = vals[vi];
> printf("%ld\n", val->bv_len); <======= HERE
> vi++;
> }
You appear to increment "vi" twice: once in the for, and once explicitly
in the cycle. Please check and report.
p.
Ing. Pierangelo Masarati
OpenLDAP Core Team
SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
------------------------------------------
Office: +39.02.23998309
Mobile: +39.333.4963172
Email: pierangelo.masarati@sys-net.it
------------------------------------------