mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
Import getfilter() double free() bug fix from -devel
This commit is contained in:
parent
5d93af75de
commit
4ed4e8b3df
2 changed files with 4 additions and 1 deletions
2
CHANGES
2
CHANGES
|
|
@ -7,6 +7,8 @@ Changes included in OpenLDAP 1.2
|
|||
Fixed -lldap/ldap_init() bug
|
||||
Fixed -lldap/ldap_sort_entries() zero entries bug
|
||||
Fixed slapd/slap_op memory/lock leak bug
|
||||
Fixed slapd/back-ldbm IDL delete from ALLIDS bug
|
||||
Fixed slapd/getfilter double free() bug
|
||||
Updated slapd/back-ldbm/id2children has_children logging
|
||||
Updated slapd/back-ldbm IDList handling
|
||||
Updated ldap_open(3) man page to note ldap_init() is preferred.
|
||||
|
|
|
|||
|
|
@ -47,7 +47,6 @@ get_filter( Connection *conn, BerElement *ber, Filter **filt, char **fstr )
|
|||
*/
|
||||
|
||||
f = (Filter *) ch_malloc( sizeof(Filter) );
|
||||
*filt = f;
|
||||
f->f_next = NULL;
|
||||
|
||||
err = 0;
|
||||
|
|
@ -175,6 +174,8 @@ get_filter( Connection *conn, BerElement *ber, Filter **filt, char **fstr )
|
|||
if ( *fstr != NULL ) {
|
||||
free( *fstr );
|
||||
}
|
||||
} else {
|
||||
*filt = f;
|
||||
}
|
||||
|
||||
Debug( LDAP_DEBUG_FILTER, "end get_filter %d\n", err, 0, 0 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue