mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
fix DN-valued (and likely others not handled in the switch) attrs duplication (occcurred with olcDbSuffix during attrs_dup(); please check)
This commit is contained in:
parent
62437022ab
commit
1d24564f9d
@ -453,14 +453,19 @@ config_get_vals(ConfigTable *cf, ConfigArgs *c)
|
||||
return 1;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
bv.bv_val = NULL;
|
||||
break;
|
||||
}
|
||||
if (bv.bv_val == c->log && bv.bv_len >= sizeof( c->log ) ) {
|
||||
return 1;
|
||||
}
|
||||
if (( cf->arg_type & ARGS_TYPES ) == ARG_STRING )
|
||||
if (( cf->arg_type & ARGS_TYPES ) == ARG_STRING ) {
|
||||
ber_bvarray_add(&c->rvalue_vals, &bv);
|
||||
else
|
||||
} else if ( !BER_BVISNULL( &bv ) ) {
|
||||
value_add_one(&c->rvalue_vals, &bv);
|
||||
}
|
||||
/* else: maybe c->rvalue_vals already set? */
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user