]> git.sur5r.net Git - openldap/commitdiff
return LDAP_OTHER if the filter cannot be parsed (ITS#5751)
authorPierangelo Masarati <ando@openldap.org>
Sun, 19 Oct 2008 21:23:06 +0000 (21:23 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 19 Oct 2008 21:23:06 +0000 (21:23 +0000)
servers/slapd/overlays/constraint.c

index 10361909bd97ced67a0529db4b8f038723171159..ec640d9dad044dfdcf8e02caf43adbf3eceb879e 100644 (file)
@@ -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 */
                }