MINOR: sample: accept fetch keywords without parenthesis

fetch keywords which support arguments do not support being called
without parenthesis even if all arguments are optional. Let's fix
this to allow fetch keywords without parenthesis as is already done
in ACLs.
This commit is contained in:
Willy Tarreau 2012-10-19 16:47:23 +02:00
parent ad8f8e8ffb
commit f22a50836d

View File

@ -354,7 +354,7 @@ struct sample_expr *sample_parse_expr(char **str, int *idx, char *err, int err_s
goto out_error;
}
}
else if (fetch->arg_mask) {
else if (ARGM(fetch->arg_mask)) {
p = my_strndup(str[*idx], endw - str[*idx]);
if (p) {
snprintf(err, err_size, "missing args for fetch method '%s'.", p);