]> git.sur5r.net Git - openldap/commitdiff
ITS#5490 callback stack may be NULL
authorHoward Chu <hyc@openldap.org>
Wed, 30 Apr 2008 23:50:08 +0000 (23:50 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 30 Apr 2008 23:50:08 +0000 (23:50 +0000)
servers/slapd/overlays/accesslog.c

index c77732a729bddb8cbeee112cb7e0b17eee7b6cb6..5eee81b627e869ef298150dc8b93f5cff11bcc4a 100644 (file)
@@ -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;