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

Re: (ITS#4302) slapi_send_ldap_result() can not send LDAPControls



--0-177591900-1136411246=:8695
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Actually, the "fix" that I suggested isn't quite right.  I think that this one is better.

    LDAPControl **old_ctrls;

    old_ctrls = rs->sr_ctrls;
    slapi_pblock_get(pb, SLAPI_RESCONTROLS, &rs->sr_ctrls);
    ...
    /* At end of function */
    rs->sr_ctrls = old_ctrls;



Darin Broady
dbroady1@yahoo.com
--0-177591900-1136411246=:8695
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Actually, the "fix" that I suggested isn't quite right.&nbsp; I think that this one is better.<br><br>&nbsp;&nbsp;&nbsp; LDAPControl **old_ctrls;<br><br>&nbsp;&nbsp;&nbsp; old_ctrls = rs-&gt;sr_ctrls;<br>&nbsp;&nbsp;&nbsp; slapi_pblock_get(pb, SLAPI_RESCONTROLS, &amp;rs-&gt;sr_ctrls);<br>&nbsp;&nbsp;&nbsp; ...<br>&nbsp;&nbsp;&nbsp; /* At end of function */<br>&nbsp;&nbsp;&nbsp; rs-&gt;sr_ctrls = old_ctrls;<br><br><BR><BR>Darin Broady<br>dbroady1@yahoo.com
--0-177591900-1136411246=:8695--