Fix bad size of ctnl_exp_cb array
Subsystems (2)
PATCH 1/1 Fix bad size of ctnl_exp_cb array
This fixes the size of the ctnl_exp_cb array that is IPCTNL_MSG_EXP_MAX instead of IPCTNL_MSG_MAX. Simple typo.
Signed-off-by Pablo Neira Ayuso <[email protected]>
net/ipv4/netfilter/ip_conntrack_netlink.c +1 -1
@@ -1490,7 +1490,7 @@ .cap_required = CAP_NET_ADMIN }, }; -static struct nfnl_callback ctnl_exp_cb[IPCTNL_MSG_MAX ] = { +static struct nfnl_callback ctnl_exp_cb[IPCTNL_MSG_EXP_MAX ] = { [IPCTNL_MSG_EXP_GET ] = { .call = ctnetlink_get_expect, .attr_count =CTA_EXPECT_MAX , .cap_required = CAP_NET_ADMIN },
Harald Welte
AppliedQuoted 2 lines · Pablo Neira
This fixes the size of the
ctnl_exp_cbarray that isIPCTNL_MSG_EXP_MAXinstead ofIPCTNL_MSG_MAX. Simple typo.
thanks, applied.
Signature · 5 lines
- Harald Welte <[email protected]> http://netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie