]> git.sur5r.net Git - openldap/commitdiff
don't mix return codes (ITS#4711)
authorPierangelo Masarati <ando@openldap.org>
Sat, 14 Oct 2006 09:26:22 +0000 (09:26 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 14 Oct 2006 09:26:22 +0000 (09:26 +0000)
servers/slapd/back-meta/search.c

index eb149e50d03df0cf370a2b367951f718cce3787d..f09421c9346b790044eca7dd6c4ab96c7d7cc2b0 100644 (file)
@@ -392,17 +392,17 @@ meta_back_search_start(
        dc->target = mt;
        dc->ctx = "searchBase";
        switch ( ldap_back_dn_massage( dc, &realbase, &mbase ) ) {
-       default:
+       case LDAP_SUCCESS:
                break;
 
-       case REWRITE_REGEXEC_UNWILLING:
+       case LDAP_UNWILLING_TO_PERFORM:
                rs->sr_err = LDAP_UNWILLING_TO_PERFORM;
                rs->sr_text = "Operation not allowed";
                send_ldap_result( op, rs );
                retcode = META_SEARCH_ERR;
                goto doreturn;
 
-       case REWRITE_REGEXEC_ERR:
+       default:
 
                /*
                 * this target is no longer candidate