[PATCH] ctnetlink: fix typo in ctnl_exp_cb array

Subsystems: networking [general], the rest

STALE7687d

2 messages, 2 authors, 2005-08-05 · open the first message on its own page

[PATCH] ctnetlink: fix typo in ctnl_exp_cb array

From: Harald Welte <hidden>
Date: 2005-08-05 16:21:42

Hi Dave, please apply.

[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 <redacted>
Signed-off-by: Harald Welte <redacted>

---
commit 76596b57e2fe552da8beef4a59d5b559dfc3d0e5
tree 84acf2c3953dd3b824cfdb0b501e1b778ac2de19
parent cc45a2a7c15b72bf38d611e469fa30d62ade8f1f
author Harald Welte [off-list ref] Fr, 05 Aug 2005 14:23:56 +0200
committer Harald Welte [off-list ref] Fr, 05 Aug 2005 14:23:56 +0200

 net/ipv4/netfilter/ip_conntrack_netlink.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/ipv4/netfilter/ip_conntrack_netlink.c b/net/ipv4/netfilter/ip_conntrack_netlink.c
--- a/net/ipv4/netfilter/ip_conntrack_netlink.c
+++ b/net/ipv4/netfilter/ip_conntrack_netlink.c
@@ -1490,7 +1490,7 @@ static struct nfnl_callback ctnl_cb[IPCT
 					    .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 <laforge@netfilter.org>                 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

Re: [PATCH] ctnetlink: fix typo in ctnl_exp_cb array

From: "David S. Miller" <davem@davemloft.net>
Date: 2005-08-05 16:39:17

From: Harald Welte <redacted>
Date: Fri, 5 Aug 2005 18:21:42 +0200
[NETFILTER] Fix typo in ctnl_exp_cb array (no bug, just memory waste)
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help