]> git.sur5r.net Git - openldap/commitdiff
don't free dangling pointers :(
authorPierangelo Masarati <ando@openldap.org>
Thu, 14 Feb 2002 18:15:56 +0000 (18:15 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 14 Feb 2002 18:15:56 +0000 (18:15 +0000)
servers/slapd/back-ldbm/modrdn.c

index 709f3b6acf07e5df0ad2a63ea5b29df35d7cf056..36f8e03536991f183964818eafb3d8fa02c6e8ed 100644 (file)
@@ -63,8 +63,8 @@ ldbm_back_modrdn(
        char textbuf[SLAP_TEXT_BUFLEN];
        size_t textlen = sizeof textbuf;
        /* Added to support LDAP v2 correctly (deleteoldrdn thing) */
-       LDAPRDN         *new_rdn;
-       LDAPRDN         *old_rdn;
+       LDAPRDN         *new_rdn = NULL;
+       LDAPRDN         *old_rdn = NULL;
        int             a_cnt, d_cnt;
        /* Added to support newSuperior */ 
        Entry           *np = NULL;     /* newSuperior Entry */