Commit 43d5d994 authored by Howard Chu's avatar Howard Chu
Browse files

More for NULL modrdn modlist

parent a1bf7f3d
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment