From 5043287a4cabf491648277770316cbd119ac5180 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 25 Apr 2000 13:52:44 +0000 Subject: [PATCH] Fix NULL filter bug --- libraries/libldap/search.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ); -- 2.39.5