[PATCH 4/4] act: fix a pointer in rtnl_act_msg_parse()
Cong Wang
xiyou.wangcong at gmail.com
Sun Mar 23 15:02:10 EDT 2014
Signed-off-by: Cong Wang <xiyou.wangcong at gmail.com>
---
lib/route/act.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/route/act.c b/lib/route/act.c
index 0a181dd..b908b17 100644
--- a/lib/route/act.c
+++ b/lib/route/act.c
@@ -449,7 +449,7 @@ err_free:
static int rtnl_act_msg_parse(struct nlmsghdr *n, struct rtnl_act **act)
{
- struct rtnl_tc *tc = TC_CAST(act);
+ struct rtnl_tc *tc = TC_CAST(*act);
struct nl_cache *link_cache;
struct nlattr *tb[TCAA_MAX + 1];
struct tcamsg *tm;
--
1.8.1.4
More information about the libnl
mailing list