]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/modrdn.c
Fix prev commit, cleanup fakeroot entry before freeing
[openldap] / servers / slapd / modrdn.c
index 258519349e9e00f95ae07c5fa867b4eb86f1dce0..0e511a761e6d2a8a2d06520c78932e874b6a4e1f 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2006 The OpenLDAP Foundation.
+ * Copyright 1998-2007 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -417,6 +417,7 @@ slap_modrdn2mods(
                        goto done;
                }
        }
+       rs->sr_text = NULL;
 
        /* Add new attribute values to the entry */
        for ( a_cnt = 0; new_rdn[a_cnt]; a_cnt++ ) {