From c1c16618a42e5ccf6839a50b8f4c0d599d352e5f Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sun, 19 Oct 2008 21:23:06 +0000 Subject: [PATCH] return LDAP_OTHER if the filter cannot be parsed (ITS#5751) --- servers/slapd/overlays/constraint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/slapd/overlays/constraint.c b/servers/slapd/overlays/constraint.c index 10361909bd..ec640d9dad 100644 --- a/servers/slapd/overlays/constraint.c +++ b/servers/slapd/overlays/constraint.c @@ -642,6 +642,7 @@ constraint_violation( constraint *c, struct berval *bv, Operation *op, SlapReply Debug( LDAP_DEBUG_ANY, "%s constraint_violation uri filter=\"%s\" invalid\n", op->o_log_prefix, filterstr.bv_val, 0 ); + rc = LDAP_OTHER; } else { Debug(LDAP_DEBUG_TRACE, @@ -656,7 +657,7 @@ constraint_violation( constraint *c, struct berval *bv, Operation *op, SlapReply } op->o_tmpfree(filterstr.bv_val, op->o_tmpmemctx); - if((rc != LDAP_SUCCESS) && (rc != LDAP_NO_SUCH_OBJECT)) { + if ((rc != LDAP_SUCCESS) && (rc != LDAP_NO_SUCH_OBJECT)) { return rc; /* unexpected error */ }