]> git.sur5r.net Git - openldap/commitdiff
Fix empty AND/OR search list bug
authorKurt Zeilenga <kurt@openldap.org>
Thu, 27 Jul 2000 23:08:48 +0000 (23:08 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 27 Jul 2000 23:08:48 +0000 (23:08 +0000)
clients/tools/ldapsearch.c

index 2365cdd8df447e867cbdc0f2967c3a3b4096940c..9c4c434cdd7f7718c349d25c6303d1eaf09cb539 100644 (file)
@@ -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 {