]> git.sur5r.net Git - openldap/commitdiff
Fix crash when no-op control is used (ITS#5358)
authorRalf Haferkamp <ralf@openldap.org>
Thu, 7 Feb 2008 12:06:24 +0000 (12:06 +0000)
committerRalf Haferkamp <ralf@openldap.org>
Thu, 7 Feb 2008 12:06:24 +0000 (12:06 +0000)
servers/slapd/back-bdb/modrdn.c

index bc13df5ef674f491fc03906e7491947eb1ebeeb5..117cb05c25b2d0b939799a98b2c21e8930f1104c 100644 (file)
@@ -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;
                }