Skip to content

Commit

Permalink
iptables: fix serializing multiple weekdays
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jow- committed Dec 6, 2020
1 parent 00f27ab commit 12f6f14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iptables.c
Expand Up @@ -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;
Expand Down

0 comments on commit 12f6f14

Please sign in to comment.