From abb01fa43740b12efd8c7948f5065dde9d28d64b Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 4 Apr 2006 10:47:42 +0000 Subject: [PATCH] cleanup --- servers/slapd/overlays/auditlog.c | 2 +- servers/slapd/overlays/pcache.c | 4 ++-- servers/slapd/overlays/translucent.c | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/servers/slapd/overlays/auditlog.c b/servers/slapd/overlays/auditlog.c index 6a2e5b4c77..cc67c2b950 100644 --- a/servers/slapd/overlays/auditlog.c +++ b/servers/slapd/overlays/auditlog.c @@ -58,7 +58,7 @@ static int auditlog_response(Operation *op, SlapReply *rs) { if ( rs->sr_err != LDAP_SUCCESS ) return SLAP_CB_CONTINUE; - if ( !op->o_bd || !ad->ad_logfile ) return SLAP_CB_CONTINUE; + if ( !ad->ad_logfile ) return SLAP_CB_CONTINUE; /* ** add or modify: use modifiersName if present diff --git a/servers/slapd/overlays/pcache.c b/servers/slapd/overlays/pcache.c index d6b44f082d..3acee3fedb 100644 --- a/servers/slapd/overlays/pcache.c +++ b/servers/slapd/overlays/pcache.c @@ -565,13 +565,13 @@ query_containment(Operation *op, query_manager *qm, fi=fi->f_next; break; case LDAP_FILTER_GE: - if (ret >= 0) + if (mrule && ret >= 0) res = 1; fs=fs->f_next; fi=fi->f_next; break; case LDAP_FILTER_LE: - if (ret <= 0) + if (mrule && ret <= 0) res = 1; fs=fs->f_next; fi=fi->f_next; diff --git a/servers/slapd/overlays/translucent.c b/servers/slapd/overlays/translucent.c index eee8a6d40c..3770e8f38e 100644 --- a/servers/slapd/overlays/translucent.c +++ b/servers/slapd/overlays/translucent.c @@ -690,6 +690,7 @@ static int translucent_db_init(BackendDB *be) { ov->info = backend_info("ldap"); if(!ov->info) { + ch_free( ov ); Debug(LDAP_DEBUG_ANY, "translucent: backend_info failed!\n", 0, 0, 0); return(1); } -- 2.39.5