[PATCH 2/5] route: detect missing cfgid in rtnl_link_inet_get_conf()

Thomas Graf tgraf at suug.ch
Thu Mar 20 18:27:19 EDT 2014


On 03/20/14 at 07:18pm, Thomas Haller wrote:
> If the netlink message for IFLA_INET_CONF contains less then
> IPV4_DEVCONF_MAX entires, the last entries in i_conf are unset.
> Modify rtnl_link_inet_get_conf() to return -EINVAL when accessing
> an unset cfgid.
> 
> Signed-off-by: Thomas Haller <thaller at redhat.com>

Acked-by: Thomas Graf <tgraf at suug.ch>



More information about the libnl mailing list