From: Kurt Zeilenga Date: Tue, 25 Apr 2000 13:52:44 +0000 (+0000) Subject: Fix NULL filter bug X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~3065 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5043287a4cabf491648277770316cbd119ac5180;p=openldap Fix NULL filter bug --- diff --git a/libraries/libldap/search.c b/libraries/libldap/search.c index 6753a25df5..8d48a37dc4 100644 --- a/libraries/libldap/search.c +++ b/libraries/libldap/search.c @@ -307,7 +307,11 @@ ldap_build_search_req( return( NULL ); } - filter = LDAP_STRDUP( filter_in ); + if( filter_in != NULL ) { + filter = LDAP_STRDUP( filter_in ); + } else { + filter = LDAP_STRDUP( "(objectclass=*)" ); + } err = put_filter( ber, filter ); LDAP_FREE( filter );