]> git.sur5r.net Git - openldap/commitdiff
fix previous commit
authorPierangelo Masarati <ando@openldap.org>
Sat, 14 Jan 2006 17:24:06 +0000 (17:24 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 14 Jan 2006 17:24:06 +0000 (17:24 +0000)
servers/slapd/search.c

index 9478b19c3eea53e2c76b32ac9734f196cf57d929..97ca38283c2e231f6afac5af82f240c07cc0a5bd 100644 (file)
@@ -340,7 +340,6 @@ fe_op_search( Operation *op, SlapReply *rs )
 
        /* check restrictions */
        if( backend_check_restrictions( op, rs, NULL ) != LDAP_SUCCESS ) {
-               op->o_bd = bd;
                send_ldap_result( op, rs );
                goto return_results;
        }
@@ -358,7 +357,6 @@ fe_op_search( Operation *op, SlapReply *rs )
                /* else limits_check() sends error */
 
        } else {
-               op->o_bd = bd;
                send_ldap_error( op, rs, LDAP_UNWILLING_TO_PERFORM,
                        "operation not supported within namingContext" );
        }