diff --git a/src/vars.c b/src/vars.c index 1d83c186a..49ff67275 100644 --- a/src/vars.c +++ b/src/vars.c @@ -697,6 +697,7 @@ static int conv_check_var(struct arg *args, struct sample_conv *conv, * the format: * * set-var() + * unset-var() * * It returns ACT_RET_PRS_ERR if fails and is filled with an error * message. Otherwise, it returns ACT_RET_PRS_OK and the variable @@ -740,10 +741,6 @@ static enum act_parse_ret parse_store(const char **args, int *arg, struct proxy /* There is no fetch method when variable is unset. Just set the right * action and return. */ if (!set_var) { - if (*args[*arg]) { - memprintf(err, "fetch method not supported"); - return ACT_RET_PRS_ERR; - } rule->action = ACT_CUSTOM; rule->action_ptr = action_clear; return ACT_RET_PRS_OK;