]> git.sur5r.net Git - openldap/commitdiff
fix a reference to volative memory in back-ldbm/passwd.c that caused garbage messages...
authorPierangelo Masarati <ando@openldap.org>
Sat, 4 Aug 2001 15:46:08 +0000 (15:46 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 4 Aug 2001 15:46:08 +0000 (15:46 +0000)
servers/slapd/back-ldbm/passwd.c

index c4f81e7c806fe9f1c2ac3da7811f952b7e6c8a64..41b30464596266c81e715ab394b88a2257e2028e 100644 (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";