mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Fix leak of default filter.
This commit is contained in:
parent
eb4c486b90
commit
de67e6d327
1 changed files with 2 additions and 0 deletions
|
|
@ -210,6 +210,7 @@ ldap_url_parse( LDAP_CONST char *url_in, LDAPURLDesc **ludpp )
|
|||
ludp->lud_filter = NULL;
|
||||
ludp->lud_ldaps = ldaps;
|
||||
ludp->lud_scope = LDAP_SCOPE_BASE;
|
||||
|
||||
ludp->lud_filter = LDAP_STRDUP("(objectClass=*)");
|
||||
|
||||
if( ludp->lud_filter == NULL ) {
|
||||
|
|
@ -359,6 +360,7 @@ ldap_url_parse( 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 ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue