]> git.sur5r.net Git - openldap/commitdiff
cleanup
authorHoward Chu <hyc@openldap.org>
Tue, 4 Apr 2006 10:47:42 +0000 (10:47 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 4 Apr 2006 10:47:42 +0000 (10:47 +0000)
servers/slapd/overlays/auditlog.c
servers/slapd/overlays/pcache.c
servers/slapd/overlays/translucent.c

index 6a2e5b4c770206586ba5d92e748e56c8001727d9..cc67c2b950b55dd2afedddc64cda5eaac52ec5ac 100644 (file)
@@ -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
index d6b44f082dfc390afd3f4bdb4f96c6db12ca5676..3acee3fedb233509c63641d012d21d720be285cf 100644 (file)
@@ -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;
index eee8a6d40ce4a1d6c222ab631c4195bf39fe26d7..3770e8f38e8e5abc2ab14d262f492972060e5769 100644 (file)
@@ -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);
        }