]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Import textbuf buf fix
authorKurt Zeilenga <kurt@openldap.org>
Wed, 29 Aug 2001 19:42:15 +0000 (19:42 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 29 Aug 2001 19:42:15 +0000 (19:42 +0000)
servers/slapd/back-ldbm/passwd.c

index 4f2e9065374413b9189f22ad99474e407a03c54a..931c2ae9a3fc91c5c1ff5abffa2e8a614d07c9ee 100644 (file)
@@ -130,6 +130,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";