From b1a2be99c6f9391245f620a3871ecb7b39569918 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 14 Oct 2006 09:26:22 +0000 Subject: [PATCH] don't mix return codes (ITS#4711) --- servers/slapd/back-meta/search.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/servers/slapd/back-meta/search.c b/servers/slapd/back-meta/search.c index eb149e50d0..f09421c934 100644 --- a/servers/slapd/back-meta/search.c +++ b/servers/slapd/back-meta/search.c @@ -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 -- 2.39.5