]> git.sur5r.net Git - openldap/commitdiff
ITS#4241 fix from HEAD
authorKurt Zeilenga <kurt@openldap.org>
Mon, 16 Jan 2006 22:03:03 +0000 (22:03 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 16 Jan 2006 22:03:03 +0000 (22:03 +0000)
servers/slapd/bconfig.c

index da0637d06238c057d2fb971be3346a50e35f4c32..354b0064e39fab9cd48dca03b548349487ba8135 100644 (file)
@@ -4100,7 +4100,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);