mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Fix ITS#1742 uninit'd textlen
This commit is contained in:
parent
9405e9a4fd
commit
384ed3461a
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user