]> git.sur5r.net Git - openldap/commitdiff
Defer normalization of attribute types and values to later stages
authorJulio Sánchez Fernández <jsanchez@openldap.org>
Fri, 9 Jul 1999 13:22:47 +0000 (13:22 +0000)
committerJulio Sánchez Fernández <jsanchez@openldap.org>
Fri, 9 Jul 1999 13:22:47 +0000 (13:22 +0000)
instead of in get_ava.

servers/slapd/ava.c

index 33a70723ddbba269b15e88f66e3726d36eda93d5..c76651e1419ffe5035944a0e38bc6fed32fa425f 100644 (file)
@@ -18,12 +18,10 @@ get_ava(
        if ( ber_scanf( ber, "{ao}", &ava->ava_type, &ava->ava_value )
            == LBER_ERROR ) {
                Debug( LDAP_DEBUG_ANY, "  get_ava ber_scanf\n", 0, 0, 0 );
-               return( -1 );
+               return( LDAP_PROTOCOL_ERROR );
        }
-       attr_normalize( ava->ava_type );
-       value_normalize( ava->ava_value.bv_val, attr_syntax( ava->ava_type ) );
 
-       return( LDAP_SUCCESS );
+       return( 0 );
 }
 
 void