From: Luke Howard Date: Sun, 11 Jun 2006 06:49:58 +0000 (+0000) Subject: Fix broken referral handling in slapi_send_ldap_result() X-Git-Tag: OPENLDAP_REL_ENG_2_4_3ALPHA~9^2~147 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1ebfd26ca3bf5e776ec03b463cc04c6f9362949e;p=openldap Fix broken referral handling in slapi_send_ldap_result() --- diff --git a/servers/slapd/slapi/slapi_utils.c b/servers/slapd/slapi/slapi_utils.c index 73f16c9a50..d3fa90ab74 100644 --- a/servers/slapd/slapi/slapi_utils.c +++ b/servers/slapd/slapi/slapi_utils.c @@ -1349,8 +1349,13 @@ slapi_send_ldap_result( } else { if ( pb->pb_op->o_tag == LDAP_REQ_SEARCH ) rs->sr_nentries = nentries; + if ( urls != NULL ) + bvptr2obj( urls, &rs->sr_ref ); send_ldap_result( pb->pb_op, rs ); + + if ( urls != NULL ) + slapi_ch_free( (void **)&rs->sr_ref ); } }