From: Pierangelo Masarati Date: Sat, 10 Aug 2002 14:25:41 +0000 (+0000) Subject: same as for back-meta X-Git-Tag: NO_SLAP_OP_BLOCKS~1244 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b063a50891aaa0a8222910823af4dd2284ecb76a;p=openldap same as for back-meta --- diff --git a/servers/slapd/back-ldap/search.c b/servers/slapd/back-ldap/search.c index 146abc336b..45c5bd43df 100644 --- a/servers/slapd/back-ldap/search.c +++ b/servers/slapd/back-ldap/search.c @@ -406,7 +406,17 @@ ldap_send_entry( ldap_back_dn_massage( li, &bdn, &ent.e_name, 0, 0 ); #endif /* !ENABLE_REWRITE */ - dnNormalize2( NULL, &ent.e_name, &ent.e_nname ); + /* + * Note: this may fail if the target host(s) schema differs + * from the one known to the meta, and a DN with unknown + * attributes is returned. + * + * FIXME: should we log anything, or delegate to dnNormalize2? + */ + if ( dnNormalize2( NULL, &ent.e_name, &ent.e_nname ) != LDAP_SUCCESS ) { + return; + } + ent.e_id = 0; ent.e_attrs = 0; ent.e_private = 0;