]> git.sur5r.net Git - openldap/commitdiff
Fix NULL filter bug
authorKurt Zeilenga <kurt@openldap.org>
Tue, 25 Apr 2000 13:52:44 +0000 (13:52 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 25 Apr 2000 13:52:44 +0000 (13:52 +0000)
libraries/libldap/search.c

index 6753a25df551a11116165f7202bb8e23b6109e4a..8d48a37dc461eccad21aaa1136b6346afc4f232b 100644 (file)
@@ -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 );