From: Pierangelo Masarati Date: Sat, 15 Oct 2005 15:43:53 +0000 (+0000) Subject: fix log level modification via slapd-monitor (ITS#4091) X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~235 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=57df4bf9c2289464d5ba395e8f344e6095ac4be9;p=openldap fix log level modification via slapd-monitor (ITS#4091) --- diff --git a/servers/slapd/back-monitor/log.c b/servers/slapd/back-monitor/log.c index 6a390891d4..8caa0dc36c 100644 --- a/servers/slapd/back-monitor/log.c +++ b/servers/slapd/back-monitor/log.c @@ -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;