From: Kurt Zeilenga Date: Thu, 12 Apr 2001 23:05:19 +0000 (+0000) Subject: Fix logic error in param check X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1472 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8684be027837029f0cc082f2e5d8fc197da5db0f;p=openldap Fix logic error in param check --- diff --git a/libraries/libldap/url.c b/libraries/libldap/url.c index bc12e22719..adc08c9b48 100644 --- a/libraries/libldap/url.c +++ b/libraries/libldap/url.c @@ -221,7 +221,7 @@ ldap_url_parse_ext( LDAP_CONST char *url_in, LDAPURLDesc **ludpp ) const char *url_tmp; char *url; - if( url_in == NULL && ludpp == NULL ) { + if( url_in == NULL || ludpp == NULL ) { return LDAP_URL_ERR_PARAM; } @@ -526,7 +526,6 @@ ldap_url_parse_ext( LDAP_CONST char *url_in, LDAPURLDesc **ludpp ) if( i == 0 ) { /* must have 1 or more */ - ldap_charray_free( ludp->lud_exts ); LDAP_FREE( url ); ldap_free_urldesc( ludp ); return LDAP_URL_ERR_BADEXTS;