]> git.sur5r.net Git - openldap/commitdiff
Fix ITS#1742 uninit'd textlen
authorHoward Chu <hyc@openldap.org>
Thu, 6 Jun 2002 11:09:00 +0000 (11:09 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 6 Jun 2002 11:09:00 +0000 (11:09 +0000)
servers/slapd/back-ldbm/passwd.c

index f15badec3122564a78f53d8ce5014fb62fddca9e..a059ee877d027aecf92cf94266afb549775609fa 100644 (file)
@@ -120,7 +120,6 @@ ldbm_back_exop_passwd(
                Modifications ml;
                struct berval *vals[2];
                char textbuf[SLAP_TEXT_BUFLEN]; /* non-returnable */
-               size_t textlen;
 
                vals[0] = hash;
                vals[1] = NULL;
@@ -131,7 +130,8 @@ ldbm_back_exop_passwd(
                ml.sml_next = NULL;
 
                rc = ldbm_modify_internal( be,
-                       conn, op, op->o_ndn, &ml, e, text, textbuf, textlen );
+                       conn, op, op->o_ndn, &ml, e, text, textbuf,
+                       sizeof( textbuf ) );
 
                /* FIXME: ldbm_modify_internal may set *tex = textbuf,
                 * which is BAD */