From 12b09f771f641210cd62e81fd2489127c2df9b06 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 29 Aug 2001 19:42:15 +0000 Subject: [PATCH] Import textbuf buf fix --- servers/slapd/back-ldbm/passwd.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/servers/slapd/back-ldbm/passwd.c b/servers/slapd/back-ldbm/passwd.c index 4f2e906537..931c2ae9a3 100644 --- a/servers/slapd/back-ldbm/passwd.c +++ b/servers/slapd/back-ldbm/passwd.c @@ -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"; -- 2.47.2