Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rtnl: fix segmentation fault on parsing linkinfo RTA without data
Some link types, such as veth, yield an IFLA_LINKINFO nla without an embedded IFLA_INFO_DATA / INFLA_INFO_SLAVE_DATA nla which causes the nla converter to dereference a NULL nla pointer. Properly deal with such cases and check for the existence of the child nla before attempting to parse it. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
- Loading branch information