mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-06-09 08:42:22 -04:00
Fix ITS#1742 uninit'd textlen
This commit is contained in:
parent
9405e9a4fd
commit
384ed3461a
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue