mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +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,
|
rc = ldbm_modify_internal( be,
|
||||||
conn, op, op->o_ndn, &ml, e, text, textbuf, textlen );
|
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 ) {
|
if( rc ) {
|
||||||
/* cannot return textbuf */
|
/* cannot return textbuf */
|
||||||
*text = "entry modify failed";
|
*text = "entry modify failed";
|
||||||
|
Loading…
Reference in New Issue
Block a user