We need to check the family of the passed cache object, not the
argument. Else we read random garbage from the stack, and sometimes it
might or might not be equal to AF_INET6.
Fixes get_link_by_ifindex sometimes failing to find a link object, which
may even crash baseboxd:
We need to check the family of the passed cache object, not the argument. Else we read random garbage from the stack, and sometimes it might or might not be equal to AF_INET6.
Fixes get_link_by_ifindex sometimes failing to find a link object, which may even crash baseboxd:
Fixes: 50fe194b8f79 ("cnetlink: fetch bridge object with ifindex and address family") Signed-off-by: Jonas Gorski jonas.gorski@bisdn.de
Description
Motivation and Context
How Has This Been Tested?