From: Ralf Haferkamp Date: Thu, 7 Feb 2008 12:06:24 +0000 (+0000) Subject: Fix crash when no-op control is used (ITS#5358) X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~195 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a1612ae911034c7b72662a5c26dfac6fb47da868;p=openldap Fix crash when no-op control is used (ITS#5358) --- 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; }