summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-12-06 14:56:26 +0100
committerJo-Philipp Wich <jo@mein.io>2020-12-06 14:57:07 +0100
commit12f6f143106257e0921c6ebbca2fe329cbeb3de6 (patch)
tree0bee4f055d716e1dfdc3fabb99da6399986fde1e
parent00f27ab1fddbd2a61a7aa746345061dfaf0e723d (diff)
downloadfirewall3-12f6f143106257e0921c6ebbca2fe329cbeb3de6.tar.gz
iptables: fix serializing multiple weekdays
Ref: https://bugs.openwrt.org/index.php?getfile=1053 Fixes: FS#1053 Fixes: 427bc12 ("iptables: fix serializing multiple weekdays") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--iptables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables.c b/iptables.c
index e7e8b59..9e8fa74 100644
--- a/iptables.c
+++ b/iptables.c
@@ -1208,7 +1208,7 @@ fw3_ipt_rule_time(struct fw3_ipt_rule *r, struct fw3_time *time)
rem--;
}
- p += snprintf(p, rem, "%u", i);
+ len = snprintf(p, rem, "%u", i);
if (len < 0 || len >= rem)
break;