Commit 5b218a7c authored by Julio Sánchez Fernández's avatar Julio Sánchez Fernández
Browse files

Defer normalization of attribute types and values to later stages

instead of in get_ava.
parent ac6fcaa9
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment