From: Hallvard Furuseth Date: Sun, 18 Jul 2004 04:12:24 +0000 (+0000) Subject: ldap_url_parse_ext(): Kill duplicate init + pointless free(NULL) of lud_filter. X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~59 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=06d3b9a9e3bceb2f822c282ece2fd53e7999887c;p=openldap ldap_url_parse_ext(): Kill duplicate init + pointless free(NULL) of lud_filter. --- diff --git a/libraries/libldap/url.c b/libraries/libldap/url.c index 207c9d5fcb..5be36f8721 100644 --- a/libraries/libldap/url.c +++ b/libraries/libldap/url.c @@ -518,7 +518,6 @@ ldap_url_parse_ext( LDAP_CONST char *url_in, LDAPURLDesc **ludpp ) ludp->lud_port = 0; ludp->lud_dn = NULL; ludp->lud_attrs = NULL; - ludp->lud_filter = NULL; ludp->lud_scope = LDAP_SCOPE_DEFAULT; ludp->lud_filter = NULL; ludp->lud_exts = NULL; @@ -725,7 +724,6 @@ ldap_url_parse_ext( LDAP_CONST char *url_in, LDAPURLDesc **ludpp ) return LDAP_URL_ERR_BADFILTER; } - LDAP_FREE( ludp->lud_filter ); ludp->lud_filter = LDAP_STRDUP( p ); if( ludp->lud_filter == NULL ) {