]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: fix use-after-free
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 3 Oct 2022 03:35:29 +0000 (12:35 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 3 Oct 2022 07:15:10 +0000 (09:15 +0200)
commit0a8720c7f087f17061a501d50e0dcd87bb58fa32
treee1125099658e396b6eeb2a6ca33f7ae64233e62e
parent2ff7862bf25be048315a8a87abf90ac1dd20d0fa
network: fix use-after-free

If the lifetime of the route is already expired, do not try to
configure it.

Fixes a use-after-free, as the Request object is already freed, thus, we
cannot use Route or Link stored in Request object.
src/network/networkd-route.c