firewall3: defaults: fix uci flow_offloading option
authorWangYanlong <yanlong.wang@naiver.org>
Fri, 13 Mar 2020 12:29:27 +0000 (12:29 +0000)
committerJo-Philipp Wich <jo@mein.io>
Fri, 13 Mar 2020 12:40:23 +0000 (13:40 +0100)
commitf87d0b0f607420424cfcb4ff5a376d7659fa5b6b
tree99bf55e39a3d87e7ebae6fba9f74116c878520cc
parentfe9602cd242d1202875ebdcc41adb7e5930caa63
firewall3: defaults: fix uci flow_offloading option

Fixes 7cc2a84 ("defaults: robustify flow table detection.")

7cc2a84 made disabling flow_offloading impossible.
This is to fix the buggy behavior.

Signed-off-by: Yanlong Wang <yanlong.wang@naiver.org>
[move variable declaration to the top, remove braces from conditional]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
defaults.c