From b0ffd0850450ec0a7472ae94c49a9cd0263fcfe3 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 30 Apr 2008 23:50:08 +0000 Subject: [PATCH] ITS#5490 callback stack may be NULL --- servers/slapd/overlays/accesslog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c index c77732a729..5eee81b627 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -1348,7 +1348,7 @@ static int accesslog_response(Operation *op, SlapReply *rs) { old = li->li_old; li->li_old = NULL; /* Disarm mod_cleanup */ - for ( cb = op->o_callback->sc_next; cb; cb = cb->sc_next ) { + for ( cb = op->o_callback; cb; cb = cb->sc_next ) { if ( cb->sc_private == (void *)on ) { cb->sc_private = NULL; break; -- 2.39.5