From 0f867b9577f048cfb736b27512fa87f55dd1cf7c Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 5 Apr 2004 23:47:17 +0000 Subject: [PATCH] revert erroneous commit; cure the test the right way --- servers/slapd/back-ldap/extended.c | 5 +++-- servers/slapd/passwd.c | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) 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; -- 2.39.5