From: Kurt Zeilenga Date: Thu, 27 Jul 2000 23:08:48 +0000 (+0000) Subject: Fix empty AND/OR search list bug X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2334 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fc6c7fefccd08b35f2f2c2a9ce956db0daeb7a25;p=openldap Fix empty AND/OR search list bug --- diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index 2365cdd8df..9c4c434cdd 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -583,7 +583,8 @@ main( int argc, char **argv ) } if (( argc - optind < 1 ) || - ( strchr( argv[optind], '=' ) == NULL ) ) + ( *argv[optind] != '(' /*')'*/ && + ( strchr( argv[optind], '=' ) == NULL ) ) ) { filtpattern = "(objectclass=*)"; } else {