]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: event-filter - Do not assert that there in no output on error
authorJosef 'Jeff' Sipek <jeff.sipek@open-xchange.com>
Thu, 12 Nov 2020 18:49:49 +0000 (13:49 -0500)
committerJosef 'Jeff' Sipek <jeff.sipek@open-xchange.com>
Thu, 12 Nov 2020 18:49:49 +0000 (13:49 -0500)
When the input is a simple (but invalid) expression (e.g., a=b=c) the output
variable may be set.  This is perfectly fine.

The assertion (and the associated failure) come from when event filter
parsing was switched to the new filter syntax
(fcba1d530737813de11d9d730d5db6496e2e574b).

src/lib/event-filter.c

index 46882e081185802dbe02c63816543727096422f4..40a1406be74781d5a2f476dc4099935003afd2a6 100644 (file)
@@ -134,7 +134,6 @@ int event_filter_parse(const char *str, struct event_filter *filter,
                filter->named_queries_only = filter->named_queries_only && state.has_event_name;
        } else if (ret != 0) {
                /* error */
-               i_assert(state.output == NULL);
                i_assert(state.error != NULL);
 
                *error_r = state.error;