mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
fix a reference to volative memory in back-ldbm/passwd.c that caused garbage messages to be returned to ldappasswd
This commit is contained in:
parent
1eb3f8b2e4
commit
8ee6168916
1 changed files with 6 additions and 0 deletions
|
|
@ -144,6 +144,12 @@ ldbm_back_exop_passwd(
|
|||
rc = ldbm_modify_internal( be,
|
||||
conn, op, op->o_ndn, &ml, e, text, textbuf, textlen );
|
||||
|
||||
/* FIXME: ldbm_modify_internal may set *tex = textbuf,
|
||||
* which is BAD */
|
||||
if ( *text == textbuf ) {
|
||||
*text = NULL;
|
||||
}
|
||||
|
||||
if( rc ) {
|
||||
/* cannot return textbuf */
|
||||
*text = "entry modify failed";
|
||||
|
|
|
|||
Loading…
Reference in a new issue