]> git.sur5r.net Git - openldap/commitdiff
Additional shutdown check
authorHoward Chu <hyc@openldap.org>
Tue, 15 Aug 2006 00:04:29 +0000 (00:04 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 15 Aug 2006 00:04:29 +0000 (00:04 +0000)
servers/slapd/overlays/accesslog.c

index a11b205c8446183157753ebb3cfaf9df046b58a6..16400140d6c58aec71fe03cd03ee193d48c74efc 100644 (file)
@@ -504,6 +504,8 @@ log_old_lookup( Operation *op, SlapReply *rs )
 
        if ( rs->sr_type != REP_SEARCH) return 0;
 
+       if ( slapd_shutdown ) return 0;
+
        if ( pd->used >= pd->slots ) {
                pd->slots += PURGE_INCREMENT;
                pd->dn = ch_realloc( pd->dn, pd->slots * sizeof( struct berval ));