Skip to content

Instantly share code, notes, and snippets.

@bodgit
Created March 17, 2015 15:25
Show Gist options
  • Save bodgit/be9ae4fcc54bb3963c83 to your computer and use it in GitHub Desktop.
Save bodgit/be9ae4fcc54bb3963c83 to your computer and use it in GitHub Desktop.
Patch for OpenLDAP 2.4.39 so pcache and translucent overlays work together
X-Git-Url: http://www.openldap.org/devel/gitweb.cgi?p=openldap.git;a=blobdiff_plain;f=servers%2Fslapd%2Foverlays%2Ftranslucent.c;h=d39fe38535b011b8dd8b7110158722efbfa4a199;hp=d9715cbf719382112bd3e456791873ac3515d003;hb=052aef59601068ccc63e403d84d70c0d5a6bc9ab;hpb=bfbc6fe4a6e515189962aebba517138d909fbfed
diff --git a/servers/slapd/overlays/translucent.c b/servers/slapd/overlays/translucent.c
index d9715cb..d39fe38 100644
--- a/servers/slapd/overlays/translucent.c
+++ b/servers/slapd/overlays/translucent.c
@@ -1109,7 +1109,8 @@ static int translucent_search(Operation *op, SlapReply *rs) {
filter2bv_x( op, fr, &op->ors_filterstr );
}
rc = ov->db.bd_info->bi_op_search(op, rs);
- op->ors_attrs = tc.attrs;
+ if ( op->ors_attrs == slap_anlist_all_attributes )
+ op->ors_attrs = tc.attrs;
op->o_bd = tc.db;
if ( fl ) {
op->o_tmpfree( op->ors_filterstr.bv_val, op->o_tmpmemctx );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment