]> git.sur5r.net Git - openldap/commitdiff
Not sure why these asserts are failing... too tired to figure it...
authorKurt Zeilenga <kurt@openldap.org>
Sat, 15 Mar 2003 23:59:14 +0000 (23:59 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 15 Mar 2003 23:59:14 +0000 (23:59 +0000)
so #ifdef for now.

servers/slapd/filter.c
servers/slapd/mra.c

index f8f2d121d30348f03f3e33ac48acf655b8a5b040..81243d9ebfcb6c82d596d79d1d6a18d4dae161a0 100644 (file)
@@ -210,7 +210,9 @@ get_filter(
                if ( err != LDAP_SUCCESS ) {
                        break;
                }
+#if XXX
                assert( f->f_and != NULL );
+#endif
                break;
 
        case LDAP_FILTER_OR:
@@ -224,7 +226,9 @@ get_filter(
                if ( err != LDAP_SUCCESS ) {
                        break;
                }
+#if XXX
                assert( f->f_or != NULL );
+#endif
                break;
 
        case LDAP_FILTER_NOT:
@@ -239,7 +243,9 @@ get_filter(
                if ( err != LDAP_SUCCESS ) {
                        break;
                }
+#if XXX
                assert( f->f_not != NULL );
+#endif
                break;
 
        case LDAP_FILTER_EXT:
@@ -255,7 +261,9 @@ get_filter(
                        break;
                }
 
+#if nothosed
                assert( f->f_mra != NULL );
+#endif
                break;
 
        default:
index a8f2d7fcfd87f14f0832e85f3d843867cbe0ec93..2c2eb178fe9c0d2cd5be88fb7bc667ed55244cbe 100644 (file)
@@ -246,10 +246,11 @@ get_mra(
                &ma->ma_value, &value, text );
        if ( rc == LDAP_SUCCESS ) {
                ber_dupbv( &ma->ma_value, &value );
-       }
+       } else
+#else
+       if( rc != LDAP_SUCCESS )
 #endif
-
-       if( rc != LDAP_SUCCESS ) {
+       {
                mra_free( ma, 1 );
                return rc;
        }