]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Remove redundant search cleanup
authorHoward Chu <hyc@openldap.org>
Mon, 18 Dec 2006 00:02:00 +0000 (00:02 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 18 Dec 2006 00:02:00 +0000 (00:02 +0000)
servers/slapd/overlays/rwm.c

index 507dac309ed3394bb8de4ecd5e39d8d958b486b9..53882fb1903d1820c1d3ecdfda2fe903208b9ddd 100644 (file)
@@ -1517,16 +1517,6 @@ rwm_response( Operation *op, SlapReply *rs )
 
        switch( op->o_tag ) {
        case LDAP_REQ_SEARCH:
-               /* Note: the operation attrs are remapped */
-               if ( rs->sr_type == REP_RESULT
-                               && op->ors_attrs != NULL
-                               && op->ors_attrs != rs->sr_attrs )
-               {
-                       ch_free( op->ors_attrs );
-                       op->ors_attrs = rs->sr_attrs;
-               }
-               /* fall thru */
-
        case LDAP_REQ_BIND:
        case LDAP_REQ_ADD:
        case LDAP_REQ_DELETE: