commit | ed108cfc0260b6b751647982b77d6363b1defb15 | [log] [tgz] |
---|---|---|
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | Thu Dec 03 17:13:48 2015 +0100 |
committer | Stephen Hemminger <shemming@brocade.com> | Thu Dec 10 08:45:21 2015 -0800 |
tree | 7beb40b55366b13d3bc8941e4cad95ab5f67b40b | |
parent | 0f7543322c5fd64d70672578979cf74226f54b64 [diff] |
libnetlink: don't confuse variables in rtnl_talk() 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 to rtnl_talk") Reported-by: Thomas Faivre <thomas.faivre@6wind.com> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>