mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
fix normalization bug (related to ITS#1984)
This commit is contained in:
parent
5dc098dab0
commit
7e81297147
2 changed files with 12 additions and 12 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue