]> git.ipfire.org Git - thirdparty/libnl.git/commitdiff
act: fix a pointer in rtnl_act_msg_parse()
authorCong Wang <xiyou.wangcong@gmail.com>
Sun, 23 Mar 2014 19:02:10 +0000 (12:02 -0700)
committerThomas Haller <thaller@redhat.com>
Thu, 1 May 2014 14:55:31 +0000 (16:55 +0200)
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Thomas Haller <thaller@redhat.com>
lib/route/act.c

index 1e9673f0e637ccd35f286ab54a0389ed521dbafc..f5733bb77c324479b1c1d9e302984739b441f9a5 100644 (file)
@@ -454,7 +454,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;