local-addresses: handle gracefully if routes lack an RTA_OIF attribute
authorLennart Poettering <lennart@poettering.net>
Tue, 23 Jan 2018 14:48:28 +0000 (15:48 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 23 Jan 2018 14:48:28 +0000 (15:48 +0100)
commit568fc5c3f7223770b8f3471da314745742125bb9
tree76373cbda505038f1f9e815dae7b4ddf1b4e388a
parent875274a4d884c486e7b5ec5e4679a51535f53fab
local-addresses: handle gracefully if routes lack an RTA_OIF attribute

Some routes (such as those using "nexthop") don't have an RTA_OIF
attribute. We need to handle that gracefully, by simply ignoring the
route.

Fixes: #7854
src/libsystemd/sd-netlink/local-addresses.c