From: Howard Chu Date: Wed, 30 Apr 2008 23:50:08 +0000 (+0000) Subject: ITS#5490 callback stack may be NULL X-Git-Tag: LOCKER_IDS~188 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b0ffd0850450ec0a7472ae94c49a9cd0263fcfe3;p=openldap ITS#5490 callback stack may be NULL --- 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;