From 1ebfd26ca3bf5e776ec03b463cc04c6f9362949e Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Sun, 11 Jun 2006 06:49:58 +0000 Subject: [PATCH] Fix broken referral handling in slapi_send_ldap_result() --- servers/slapd/slapi/slapi_utils.c | 5 +++++ 1 file changed, 5 insertions(+) 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 ); } } -- 2.39.5