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

Re: (ITS#4314) C API for paged results



> On Sunday 08 January 2006 23:12, Pierangelo Masarati wrote:
>
> In ldap_create_page_control_value() you do this:
>
>>    if ( cookie == NULL ) {
>>        cookie = &null_cookie;
>>    }
>
> where cookie is passed by the caller, but he might depend
> on us not touching it, right?

In this case, I'm changing the value of the pointer, not its contents, so
what I'm changing is passed by value and not by reference.  I believe it
works as intended.

p.



Ing. Pierangelo Masarati
Responsabile Open Solution
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
------------------------------------------