summaryrefslogtreecommitdiffhomepage
path: root/main.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-06-08 10:58:01 +0200
committerJo-Philipp Wich <jo@mein.io>2022-06-08 10:58:01 +0200
commit230e595312b7b0f48ad7129f908d9b337d63e8b6 (patch)
tree2866ee2cc117e8ea9777bae3b16ae01cac962ddc /main.c
parentb211ca0e420d8086d3fa0358413a6f8b44df1115 (diff)
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>
Diffstat (limited to 'main.c')
0 files changed, 0 insertions, 0 deletions