From: Pierangelo Masarati Date: Sat, 11 Aug 2007 09:31:48 +0000 (+0000) Subject: more on ITS#4868 X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~238 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3119bba337c9fbdc2736dc227c5b2df93969baf6;p=openldap more on ITS#4868 --- diff --git a/servers/slapd/back-sql/search.c b/servers/slapd/back-sql/search.c index fa0658f2d2..93b7156ad0 100644 --- a/servers/slapd/back-sql/search.c +++ b/servers/slapd/back-sql/search.c @@ -79,6 +79,11 @@ backsql_attrlist_add( backsql_srch_info *bsi, AttributeDescription *ad ) return 1; } + /* strip ';binary' */ + if ( slap_ad_is_binary( ad ) ) { + ad = ad->ad_type->sat_ad; + } + for ( ; !BER_BVISNULL( &bsi->bsi_attrs[ n_attrs ].an_name ); n_attrs++ ) { an = &bsi->bsi_attrs[ n_attrs ];