[PATCH 4/4] act: fix a pointer in rtnl_act_msg_parse()

Thomas Haller thaller at redhat.com
Thu May 1 08:01:06 PDT 2014


On Sun, 2014-03-23 at 12:02 -0700, Cong Wang wrote:
> 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;


Patch applied as:

https://github.com/thom311/libnl/commit/b8d90d9bb19b5d9e4e5f71c4f6bb0eaadd78d7a0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20140501/e46d93eb/attachment.sig>


More information about the libnl mailing list