diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-11-25 23:33:55 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-11-25 23:33:55 +0100 |
commit | d4df4e2ef9972cdab8257302a8e4d97ff3c2a2d4 (patch) | |
tree | 67dd5627c19d9d94a184a664935f139f3caca4f0 | |
parent | d80d3c03a1b7d8e1badabe4c88db570cf776c2e5 (diff) | |
parent | 8cc9d198c7ab906e176a7926484ea85d4f53cab6 (diff) |
Merge commit '8cc9d198' into wireguard-next-tmp7-1
-rw-r--r-- | filter/config.Y | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/filter/config.Y b/filter/config.Y index 7b51cf72..5abaca52 100644 --- a/filter/config.Y +++ b/filter/config.Y @@ -1146,6 +1146,15 @@ cmd: | UNSET '(' dynamic_attr ')' ';' { $$ = f_new_inst(FI_EA_UNSET, $3); } + | UNSET '(' symbol_known ')' ';' { + switch ($3->class) { + case SYM_ATTRIBUTE: + $$ = f_new_inst(FI_EA_UNSET, *$3->attribute); + break; + default: + cf_error("Can't unset symbol %s", $3->name); + } + } | break_command var_list_r ';' { $$ = f_print($2, !!$2, $1); } |