]> git.sur5r.net Git - openldap/commitdiff
Fix undefined filter parsing
authorKurt Zeilenga <kurt@openldap.org>
Sat, 16 Jun 2001 02:20:48 +0000 (02:20 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 16 Jun 2001 02:20:48 +0000 (02:20 +0000)
servers/slapd/filter.c
tests/scripts/test003-search

index efffa483885eca36ba2f0a619270c1dd9171f2cd..8678f48b64f80f86a46f181b544d54c1d775c7b8 100644 (file)
@@ -331,7 +331,7 @@ get_filter(
                break;
 
        default:
-               (void) ber_skip_tag( ber, &len );
+               (void) ber_scanf( ber, "x" ); /* skip the element */
 #ifdef NEW_LOGGING
                LDAP_LOG(( "filter", LDAP_LEVEL_ERR,
                           "get_filter: conn %d unknown filter type=%lu\n",
index 38a90e5db14499f5dd2adb193f4c8f0193c0107d..68cd8fd107b8751cbd2a2c9a532d4aa68f90907e 100755 (executable)
@@ -69,7 +69,7 @@ fi
 
 echo "Testing OR searching..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h localhost -p $PORT \
-       '(|(objectclass=groupofnames)(sn=jones))' >> $SEARCHOUT 2>&1
+       '(|(undefined=fubar)(objectclass=groupofnames)(sn=jones))' >> $SEARCHOUT 2>&1
 if test $RC != 0 ; then
        echo "ldapsearch failed ($RC)!"
        kill -HUP $PID