]> git.sur5r.net Git - openldap/commitdiff
fix no-op crasher (ITS#4925)
authorPierangelo Masarati <ando@openldap.org>
Wed, 11 Apr 2007 20:31:49 +0000 (20:31 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 11 Apr 2007 20:31:49 +0000 (20:31 +0000)
servers/slapd/back-bdb/modify.c

index 408ad24f6a4d1454d2366884790b75c6e0bddd79..67f3b723ce67303e59d1532a0faf44258772ad07 100644 (file)
@@ -588,6 +588,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;
                }
        } else {