diff options
Diffstat (limited to 'iptables/nft-ipv6.c')
-rw-r--r-- | iptables/nft-ipv6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft-ipv6.c b/iptables/nft-ipv6.c index 9867d1ee..1be49dd3 100644 --- a/iptables/nft-ipv6.c +++ b/iptables/nft-ipv6.c @@ -416,7 +416,7 @@ static int nft_ipv6_xlate(const void *data, struct xt_xlate *xl) if (cs->fw6.ipv6.proto != 0) { const struct protoent *pent = getprotobynumber(cs->fw6.ipv6.proto); - char protonum[strlen("255") + 1]; + char protonum[sizeof("65535")]; if (!xlate_find_match(cs, pent->p_name)) { snprintf(protonum, sizeof(protonum), "%u", |