From: Pierangelo Masarati Date: Sun, 19 Oct 2008 21:23:06 +0000 (+0000) Subject: return LDAP_OTHER if the filter cannot be parsed (ITS#5751) X-Git-Tag: ACLCHECK_0~1218 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c1c16618a42e5ccf6839a50b8f4c0d599d352e5f;p=openldap return LDAP_OTHER if the filter cannot be parsed (ITS#5751) --- 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 */ }