Re: [PATCH iproute2] libnetlink: don't confuse variables in rtnl_talk()

2015-12-10 Thread Stephen Hemminger
On Thu, 3 Dec 2015 17:13:48 +0100 Nicolas Dichtel wrote: > There is two variables named 'len' in rtnl_talk. In fact, commit > c079e121a73a didn't work. For example, it was possible to trigger > a seg fault with this command: > $ ip link set gre2 type ip6gre hoplimit 32 > > Let's rename the argu

[PATCH iproute2] libnetlink: don't confuse variables in rtnl_talk()

2015-12-03 Thread Nicolas Dichtel
There is two variables named 'len' in rtnl_talk. In fact, commit c079e121a73a didn't work. For example, it was possible to trigger a seg fault with this command: $ ip link set gre2 type ip6gre hoplimit 32 Let's rename the argument len to maxlen. Fixes: c079e121a73a ("libnetlink: add size argument