From 845b026ecfb622bb50ec51608c7020405df8c5ed Mon Sep 17 00:00:00 2001 From: shifter Date: Thu, 26 Sep 2024 10:17:20 +0200 Subject: [PATCH] filterx: add check for unknown arguments in unset_empties Signed-off-by: shifter --- lib/filterx/func-unset-empties.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/filterx/func-unset-empties.c b/lib/filterx/func-unset-empties.c index 1db3af567..47ebf1b56 100644 --- a/lib/filterx/func-unset-empties.c +++ b/lib/filterx/func-unset-empties.c @@ -489,7 +489,8 @@ filterx_function_unset_empties_new(FilterXFunctionArgs *args, GError **error) reset_flags(&self->flags, ALL_FLAG_SET(FilterXFunctionUnsetEmptiesFlags)); - if (!_extract_args(self, args, error)) + if (!_extract_args(self, args, error) || + !filterx_function_args_check(args, error)) goto error; filterx_function_args_free(args);