]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
fixes ITS#1367 for REL_ENG
authorPierangelo Masarati <ando@openldap.org>
Fri, 7 Dec 2001 15:46:58 +0000 (15:46 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 7 Dec 2001 15:46:58 +0000 (15:46 +0000)
servers/slapd/back-ldap/search.c

index ba3f41972abaa5e76cc33fdfe1feb660a3815f74..260f8f76152f0cc088b67ed8642337af27bb189e 100644 (file)
@@ -169,7 +169,12 @@ ldap_send_entry(
                        continue;
                attr->a_next = 0;
                attr->a_desc = NULL;
-               slap_str2ad(a, &attr->a_desc, &text);
+               if (slap_str2ad(a, &attr->a_desc, &text) != LDAP_SUCCESS) {
+                       if (slap_str2undef_ad(a, &attr->a_desc, &text) != LDAP_SUCCESS) {
+                               ch_free(attr);
+                               continue;
+                       }
+               }               
                attr->a_vals = ldap_get_values_len(lc->ld, e, a);
                if (!attr->a_vals)
                        attr->a_vals = &dummy;