From: Kurt Zeilenga Date: Fri, 30 Sep 2005 16:14:50 +0000 (+0000) Subject: Removed initialization of old.bv_len and new.bv_len cures X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~344 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d72f862fa75eee523b6ae8f371496857b250f475;p=openldap Removed initialization of old.bv_len and new.bv_len cures the recent test010 failure! hmmmm..... --- diff --git a/servers/slapd/passwd.c b/servers/slapd/passwd.c index 385e2be3c1..41ff367134 100644 --- a/servers/slapd/passwd.c +++ b/servers/slapd/passwd.c @@ -68,9 +68,7 @@ int passwd_extop( return LDAP_STRONG_AUTH_REQUIRED; } - qpw->rs_old.bv_len = 0; qpw->rs_old.bv_val = NULL; - qpw->rs_new.bv_len = 0; qpw->rs_new.bv_val = NULL; qpw->rs_mods = NULL; qpw->rs_modtail = NULL; @@ -84,8 +82,10 @@ int passwd_extop( qpw->rs_old.bv_val ? " old" : "", qpw->rs_new.bv_val ? " new" : "", 0 ); } else { - Statslog( LDAP_DEBUG_STATS, "%s PASSMOD\n", - op->o_log_prefix, 0, 0, 0, 0 ); + Statslog( LDAP_DEBUG_STATS, "%s PASSMOD %s%s\n", + op->o_log_prefix, + qpw->rs_old.bv_val ? " old" : "", + qpw->rs_new.bv_val ? " new" : "", 0, 0 ); } if ( rs->sr_err != LDAP_SUCCESS ) {