]> git.sur5r.net Git - openldap/commitdiff
Removed initialization of old.bv_len and new.bv_len cures
authorKurt Zeilenga <kurt@openldap.org>
Fri, 30 Sep 2005 16:14:50 +0000 (16:14 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 30 Sep 2005 16:14:50 +0000 (16:14 +0000)
the recent test010 failure!  hmmmm.....

servers/slapd/passwd.c

index 385e2be3c1c46480642787a7fa592314979d557b..41ff3671345567a639680987e31965d98a0223a5 100644 (file)
@@ -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 ) {