diff --git a/src/acl.c b/src/acl.c index 2ee4d5096..033cfc916 100644 --- a/src/acl.c +++ b/src/acl.c @@ -487,7 +487,7 @@ struct acl_expr *parse_acl_expr(const char **args, char **err, struct arg_list * } /* Note: -m found is always valid, bool/int are compatible, str/bin/reg/len are compatible */ - if (!sample_casts[cur_type][pat_match_types[idx]]) { + if (idx != PAT_MATCH_FOUND && !sample_casts[cur_type][pat_match_types[idx]]) { memprintf(err, "matching method '%s' cannot be used with fetch keyword '%s'", args[1], expr->kw); goto out_free_expr; }