]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: event_push_global() - Assert that event is not NULL
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 19 Apr 2021 21:08:57 +0000 (00:08 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Wed, 29 Sep 2021 10:09:58 +0000 (10:09 +0000)
src/lib/lib-event.c

index 26ce4aafc0befdec7cf2825ab053df4b0c81962f..9afa48968a95f22f8635fd500723ffd28f1b6dc5 100644 (file)
@@ -481,6 +481,8 @@ struct event *events_get_head(void)
 
 struct event *event_push_global(struct event *event)
 {
+       i_assert(event != NULL);
+
        if (current_global_event != NULL) {
                if (!array_is_created(&global_event_stack))
                        i_array_init(&global_event_stack, 4);