mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08: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
@ -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 New Issue
Block a user