]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
More for NULL modrdn modlist
authorHoward Chu <hyc@openldap.org>
Sat, 22 Dec 2018 18:40:59 +0000 (10:40 -0800)
committerHoward Chu <hyc@openldap.org>
Sat, 22 Dec 2018 18:40:59 +0000 (10:40 -0800)
servers/slapd/back-bdb/cache.c

index e0ce9cc95a79fa9212180d73251e59c20d1686cb..96e1ef1d550da437d1802bd4cc12e5541b3de9d5 100644 (file)
@@ -1268,7 +1268,7 @@ bdb_cache_modrdn(
        /* If we've done repeated mods on a cached entry, then e_attrs
         * is no longer contiguous with the entry, and must be freed.
         */
-       if ( (void *)e->e_attrs != (void *)(e+1) ) {
+       if ( (void *)e->e_attrs != (void *)(e+1) && e->e_attrs != new->e_attrs ) {
                attrs_free( e->e_attrs );
        }
        e->e_attrs = new->e_attrs;