From: Ondřej Kuzník Date: Tue, 20 Jun 2023 08:13:32 +0000 (+0100) Subject: ITS#10068 keep our own copy of the DN X-Git-Tag: OPENLDAP_REL_ENG_2_5_17~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17a805c35b7374a902a8244ee16ef139d628806b;p=thirdparty%2Fopenldap.git ITS#10068 keep our own copy of the DN --- diff --git a/servers/slapd/back-null/null.c b/servers/slapd/back-null/null.c index 50b6fbcf1a..c8d3292ab2 100644 --- a/servers/slapd/back-null/null.c +++ b/servers/slapd/back-null/null.c @@ -72,8 +72,8 @@ null_back_db_open( BackendDB *be, ConfigReply *cr ) if ( ni->ni_dosearch ) { e = entry_alloc(); - e->e_name = be->be_suffix[0]; - e->e_nname = be->be_nsuffix[0]; + ber_dupbv( &e->e_name, &be->be_suffix[0] ); + ber_dupbv( &e->e_nname, &be->be_nsuffix[0] ); dnRdn( &e->e_nname, &bv[0] ); bv[1].bv_val = strchr(bv[0].bv_val, '=') + 1;