]> git.sur5r.net Git - openldap/commitdiff
Ignore unknown attributes in slapi_send_ldap_search_entry()
authorLuke Howard <lukeh@openldap.org>
Fri, 9 Jun 2006 15:42:33 +0000 (15:42 +0000)
committerLuke Howard <lukeh@openldap.org>
Fri, 9 Jun 2006 15:42:33 +0000 (15:42 +0000)
(mirrors code in slapi_pblock.c)

servers/slapd/slapi/slapi_utils.c

index 554cfb2fa0f7f3d1f69e053a81baa89f7afbe8c2..b897926e40f45161ea8126dedd161ff122a5e9e7 100644 (file)
@@ -1382,11 +1382,7 @@ slapi_send_ldap_search_entry(
                        an[i].an_name.bv_val = attrs[i];
                        an[i].an_name.bv_len = strlen( attrs[i] );
                        an[i].an_desc = NULL;
-                       rs.sr_err = slap_bv2ad( &an[i].an_name, &an[i].an_desc, &text );
-                       if ( rs.sr_err != LDAP_SUCCESS) {
-                               slapi_ch_free( (void **)&an );
-                               return -1;
-                       }
+                       (void) slap_bv2ad( &an[i].an_name, &an[i].an_desc, &text );
                }
                an[i].an_name.bv_len = 0;
                an[i].an_name.bv_val = NULL;