Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
route: detect missing cfgid in rtnl_link_inet_get_conf()
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. Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
- Loading branch information
Showing
1 changed file
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters