From: Timo Sirainen Date: Tue, 23 May 2023 09:48:09 +0000 (+0300) Subject: lib: event filters - Fix matching source location filename X-Git-Tag: 2.4.0~1966 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f474f012f0ab8d677b80cd044f335818981637d5;p=thirdparty%2Fdovecot%2Fcore.git lib: event filters - Fix matching source location filename The comparisons always used the created event's source filename rather than e.g. event_want_debug() function's source filename. --- diff --git a/src/lib/event-filter.c b/src/lib/event-filter.c index 151f763444..7eac8778ad 100644 --- a/src/lib/event-filter.c +++ b/src/lib/event-filter.c @@ -901,7 +901,7 @@ event_filter_query_match_cmp(struct event_filter_node *node, return !((source_linenum != node->field.value.intmax && node->field.value.intmax != 0) || source_filename == NULL || - strcmp(event->source_filename, node->field.value.str) != 0); + strcmp(source_filename, node->field.value.str) != 0); case EVENT_FILTER_NODE_TYPE_EVENT_CATEGORY: return event_has_category(event, node, log_type); case EVENT_FILTER_NODE_TYPE_EVENT_FIELD_EXACT: