]> git.sur5r.net Git - openldap/commitdiff
Fix previous patch, zero out lud_next on new urldesc
authorHoward Chu <hyc@openldap.org>
Fri, 12 May 2000 10:48:27 +0000 (10:48 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 12 May 2000 10:48:27 +0000 (10:48 +0000)
libraries/libldap/url.c

index 7be84de9cc717fd9e2e65c470a217160075979bf..b15b1dc7e50258865d8f69e875f759e419013366 100644 (file)
@@ -454,6 +454,7 @@ ldap_url_dup ( LDAPURLDesc *ludp )
                return NULL;
        
        *dest = *ludp;
+       dest->lud_next = NULL;
 
        if ( ludp->lud_host != NULL ) {
                dest->lud_host = LDAP_STRDUP( ludp->lud_host );