From: Pierangelo Masarati Date: Thu, 25 Jul 2002 09:48:29 +0000 (+0000) Subject: fix normalization bug (related to ITS#1984) X-Git-Tag: NO_SLAP_OP_BLOCKS~1341 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7e81297147fa52f8be8932b08dfba7cac65a296a;p=openldap fix normalization bug (related to ITS#1984) --- diff --git a/servers/slapd/back-monitor/conn.c b/servers/slapd/back-monitor/conn.c index 685df216d4..e1ef09f0df 100644 --- a/servers/slapd/back-monitor/conn.c +++ b/servers/slapd/back-monitor/conn.c @@ -210,12 +210,12 @@ monitor_subsys_conn_update( assert( mi ); assert( e ); - if ( strncasecmp( e->e_ndn, "CN=TOTAL", - sizeof("CN=TOTAL")-1 ) == 0 ) { + if ( strncasecmp( e->e_ndn, "cn=total", + sizeof("cn=total")-1 ) == 0 ) { n = connections_nextid(); - } else if ( strncasecmp( e->e_ndn, "CN=CURRENT", - sizeof("CN=CURRENT")-1 ) == 0 ) { + } else if ( strncasecmp( e->e_ndn, "cn=current", + sizeof("cn=current")-1 ) == 0 ) { Connection *c; int connindex; diff --git a/servers/slapd/back-monitor/sent.c b/servers/slapd/back-monitor/sent.c index 673fd63a12..62c55f92ba 100644 --- a/servers/slapd/back-monitor/sent.c +++ b/servers/slapd/back-monitor/sent.c @@ -317,26 +317,26 @@ monitor_subsys_sent_update( assert( mi ); assert( e ); - if ( strncasecmp( e->e_ndn, "CN=ENTRIES", - sizeof("CN=ENTRIES")-1 ) == 0 ) { + if ( strncasecmp( e->e_ndn, "cn=entries", + sizeof("cn=entries")-1 ) == 0 ) { ldap_pvt_thread_mutex_lock(&num_sent_mutex); n = num_entries_sent; ldap_pvt_thread_mutex_unlock(&num_sent_mutex); - } else if ( strncasecmp( e->e_ndn, "CN=REFERRALS", - sizeof("CN=REFERRALS")-1 ) == 0 ) { + } else if ( strncasecmp( e->e_ndn, "cn=referrals", + sizeof("cn=referrals")-1 ) == 0 ) { ldap_pvt_thread_mutex_lock(&num_sent_mutex); n = num_refs_sent; ldap_pvt_thread_mutex_unlock(&num_sent_mutex); - } else if ( strncasecmp( e->e_ndn, "CN=PDU", - sizeof("CN=PDU")-1 ) == 0 ) { + } else if ( strncasecmp( e->e_ndn, "cn=pdu", + sizeof("cn=pdu")-1 ) == 0 ) { ldap_pvt_thread_mutex_lock(&num_sent_mutex); n = num_pdu_sent; ldap_pvt_thread_mutex_unlock(&num_sent_mutex); - } else if ( strncasecmp( e->e_ndn, "CN=BYTES", - sizeof("CN=BYTES")-1 ) == 0 ) { + } else if ( strncasecmp( e->e_ndn, "cn=bytes", + sizeof("cn=bytes")-1 ) == 0 ) { ldap_pvt_thread_mutex_lock(&num_sent_mutex); n = num_bytes_sent; ldap_pvt_thread_mutex_unlock(&num_sent_mutex);