mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
tolerate that config_get_vals() returns success with no values (ITS#4341)
This commit is contained in:
parent
f3dba23fbb
commit
e720c15c4d
1 changed files with 3 additions and 1 deletions
|
|
@ -4211,7 +4211,9 @@ config_build_attrs( Entry *e, AttributeType **at, AttributeDescription *ad,
|
|||
for (i=0;ct[i].name;i++) {
|
||||
if (ct[i].ad == (*at)->sat_ad) {
|
||||
rc = config_get_vals(&ct[i], c);
|
||||
if (rc == LDAP_SUCCESS) {
|
||||
/* NOTE: tolerate that config_get_vals()
|
||||
* returns success with no values */
|
||||
if (rc == LDAP_SUCCESS && c->rvalue_vals != NULL ) {
|
||||
if ( c->rvalue_nvals )
|
||||
attr_merge(e, ct[i].ad, c->rvalue_vals,
|
||||
c->rvalue_nvals);
|
||||
|
|
|
|||
Loading…
Reference in a new issue