]> git.sur5r.net Git - openldap/commitdiff
check in portions of code is done on length rather than pointer
authorPierangelo Masarati <ando@openldap.org>
Mon, 5 Apr 2004 17:25:22 +0000 (17:25 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 5 Apr 2004 17:25:22 +0000 (17:25 +0000)
servers/slapd/passwd.c

index bfb271b675cd03f58d5b2d7a6d1bb90016ad2039..d2a85f818ce90d074983930f847b47f393ea8a9e 100644 (file)
@@ -59,7 +59,9 @@ 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;