]> git.sur5r.net Git - openldap/commitdiff
Fix broken referral handling in slapi_send_ldap_result()
authorLuke Howard <lukeh@openldap.org>
Sun, 11 Jun 2006 06:49:58 +0000 (06:49 +0000)
committerLuke Howard <lukeh@openldap.org>
Sun, 11 Jun 2006 06:49:58 +0000 (06:49 +0000)
servers/slapd/slapi/slapi_utils.c

index 73f16c9a50528401d8783228c99dc3b964349b54..d3fa90ab745c84f0e1290c5fece7aa6f3699eee8 100644 (file)
@@ -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 );
        }
 }