Skip to content
Snippets Groups Projects
Commit 8ee61689 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

fix a reference to volative memory in back-ldbm/passwd.c that caused garbage...

fix a reference to volative memory in back-ldbm/passwd.c that caused garbage messages to be returned to ldappasswd
parent 1eb3f8b2
Branches
Tags
No related merge requests found
......@@ -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";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment