[NETFILTER]: Fix typo in ctnl_exp_cb array (no bug, just memory waste)
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 <pablo@eurodev.net> Signed-off-by: Harald Welte <laforge@netfilter.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
37012f7fd3
Коммит
28b19d99ac
|
@ -1490,7 +1490,7 @@ static struct nfnl_callback ctnl_cb[IPCTNL_MSG_MAX] = {
|
||||||
.cap_required = CAP_NET_ADMIN },
|
.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,
|
[IPCTNL_MSG_EXP_GET] = { .call = ctnetlink_get_expect,
|
||||||
.attr_count = CTA_EXPECT_MAX,
|
.attr_count = CTA_EXPECT_MAX,
|
||||||
.cap_required = CAP_NET_ADMIN },
|
.cap_required = CAP_NET_ADMIN },
|
||||||
|
|
Загрузка…
Ссылка в новой задаче