]> granicus.if.org Git - libnl/commitdiff
fix a bug in rtnl_act_fill()
authorCong Wang <xiyou.wangcong@gmail.com>
Thu, 5 Dec 2013 23:48:26 +0000 (15:48 -0800)
committerThomas Graf <tgraf@suug.ch>
Mon, 9 Dec 2013 14:33:17 +0000 (15:33 +0100)
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
lib/route/act.c

index 6b7a615a92b9329084d9d4c477d35470abdfde28..32613e04ed3c627e9cae31162f8271c58c8b3cf9 100644 (file)
@@ -97,7 +97,7 @@ int rtnl_act_fill(struct nl_msg *msg, int attrtype, struct rtnl_act *act)
                return -NLE_MSGSIZE;
 
        while (p_act) {
-               err = rtnl_act_fill_one(msg, act, ++order);
+               err = rtnl_act_fill_one(msg, p_act, ++order);
                if (err)
                        return err;
                p_act = p_act->a_next;