Closed TarEnethil closed 1 year ago
ac_request_type() in route/link.c will segfault if the function pointer ops->ao_override_rtm has not been initialized for the given af_type parameter.
ac_request_type()
route/link.c
ops->ao_override_rtm
af_type
The bug was found while trying to call rtnl_link_change() for a link with family type AF_INET6. It seems this bug was introduced in 3c427d0.
rtnl_link_change()
Fix: check that ao_override_rtm is a valid pointer before calling it.
ao_override_rtm
merged to main. Thank you for your patch, and sorry for the long time...
main
ac_request_type()
inroute/link.c
will segfault if the function pointerops->ao_override_rtm
has not been initialized for the givenaf_type
parameter.The bug was found while trying to call
rtnl_link_change()
for a link with family type AF_INET6. It seems this bug was introduced in 3c427d0.Fix: check that
ao_override_rtm
is a valid pointer before calling it.