OpenLDAP 2.2 Change Log
OpenLDAP 2.2.12 Engineering
+ Fixed slapd empty DN uniqueMember normalization
Fixed slapd empty DN in proxyAuthx control
Fixed slapd parsing of auth{cz} "dn:<pat>" rules
Fixed slapd set acl recursion (ITS#3140)
assert( SLAP_MR_IS_VALUE_OF_SYNTAX( usage ));
- ber_dupbv( &out, val );
- if( out.bv_len != 0 ) {
+ ber_dupbv_x( &out, val, ctx );
+ if( BER_BVISEMPTY( &out ) ) {
+ *normalized = out;
+
+ } else {
struct berval uid = BER_BVNULL;
if( out.bv_val[out.bv_len-1] == 'B'
uid.bv_val = strrchr( out.bv_val, '#' );
if( uid.bv_val == NULL ) {
- free( out.bv_val );
+ sl_free( out.bv_val, ctx );
return LDAP_INVALID_SYNTAX;
}
rc = dnNormalize( 0, NULL, NULL, &out, normalized, ctx );
if( rc != LDAP_SUCCESS ) {
- free( out.bv_val );
+ sl_free( out.bv_val, ctx );
return LDAP_INVALID_SYNTAX;
}
normalized->bv_val[normalized->bv_len] = '\0';
}
- free( out.bv_val );
+ sl_free( out.bv_val, ctx );
}
return LDAP_SUCCESS;