]> git.sur5r.net Git - openldap/commitdiff
more on ITS#4868
authorPierangelo Masarati <ando@openldap.org>
Sat, 11 Aug 2007 09:31:48 +0000 (09:31 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 11 Aug 2007 09:31:48 +0000 (09:31 +0000)
servers/slapd/back-sql/search.c

index fa0658f2d20c6a1e60e9a6ddcea129488eb5c3df..93b7156ad016cb180eaac4eb4325b905d25c23e4 100644 (file)
@@ -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 ];