From: Pierangelo Masarati Date: Mon, 5 Apr 2004 23:47:17 +0000 (+0000) Subject: revert erroneous commit; cure the test the right way X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~134 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0f867b9577f048cfb736b27512fa87f55dd1cf7c;p=openldap revert erroneous commit; cure the test the right way --- diff --git a/servers/slapd/back-ldap/extended.c b/servers/slapd/back-ldap/extended.c index 1cf5a0444f..9e0641209f 100644 --- a/servers/slapd/back-ldap/extended.c +++ b/servers/slapd/back-ldap/extended.c @@ -134,8 +134,9 @@ ldap_back_exop_passwd( } rc = ldap_passwd(lc->ld, isproxy ? &mdn : NULL, - qpw->rs_old.bv_len ? &qpw->rs_old : NULL, - qpw->rs_new.bv_len ? &qpw->rs_new : NULL, op->o_ctrls, NULL, &msgid); + qpw->rs_old.bv_val ? &qpw->rs_old : NULL, + qpw->rs_new.bv_val ? &qpw->rs_new : NULL, + op->o_ctrls, NULL, &msgid); if (mdn.bv_val != op->o_req_dn.bv_val) { free(mdn.bv_val); diff --git a/servers/slapd/passwd.c b/servers/slapd/passwd.c index d2a85f818c..bfb271b675 100644 --- a/servers/slapd/passwd.c +++ b/servers/slapd/passwd.c @@ -59,9 +59,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;