From 3119bba337c9fbdc2736dc227c5b2df93969baf6 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 11 Aug 2007 09:31:48 +0000 Subject: [PATCH] more on ITS#4868 --- servers/slapd/back-sql/search.c | 5 +++++ 1 file changed, 5 insertions(+) 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 ]; -- 2.39.5