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:
Pierangelo Masarati 2001-08-04 15:46:08 +00:00
parent 1eb3f8b2e4
commit 8ee6168916

View File

@ -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";