From a1612ae911034c7b72662a5c26dfac6fb47da868 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Thu, 7 Feb 2008 12:06:24 +0000 Subject: [PATCH] Fix crash when no-op control is used (ITS#5358) --- servers/slapd/back-bdb/modrdn.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servers/slapd/back-bdb/modrdn.c b/servers/slapd/back-bdb/modrdn.c index bc13df5ef6..117cb05c25 100644 --- a/servers/slapd/back-bdb/modrdn.c +++ b/servers/slapd/back-bdb/modrdn.c @@ -739,6 +739,8 @@ retry: /* transaction retry */ } else { rs->sr_err = LDAP_X_NO_OPERATION; ltid = NULL; + /* Only free attrs if they were dup'd. */ + if ( dummy.e_attrs == e->e_attrs ) dummy.e_attrs = NULL; goto return_results; } -- 2.39.5