]> git.sur5r.net Git - openldap/commitdiff
fix log level modification via slapd-monitor (ITS#4091)
authorPierangelo Masarati <ando@openldap.org>
Sat, 15 Oct 2005 15:43:53 +0000 (15:43 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 15 Oct 2005 15:43:53 +0000 (15:43 +0000)
servers/slapd/back-monitor/log.c

index 6a390891d463c49949a3e2c02537464bc85c34cf..8caa0dc36c69c0e3a41f7019ccf0b473263369f3 100644 (file)
@@ -326,7 +326,7 @@ check_constraints( Modification *mod, int *newlevel )
                                int_2_level[ l ].n.bv_val,
                                int_2_level[ l ].n.bv_len );
 
-               *newlevel |= l;
+               *newlevel |= int_2_level[ l ].i;
        }
 
        return LDAP_SUCCESS;
@@ -411,6 +411,7 @@ delete_values( Entry *e, Modification *mod, int *newlevel )
 
                if ( rc ) {
                        rc = LDAP_NO_SUCH_ATTRIBUTE;
+
                } else {
                        *newlevel = 0;
                        rc = LDAP_SUCCESS;