diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-06-10 23:26:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-10 23:26:24 +0200 |
commit | e373507d2570fe474a09fd6e3836ead32dca912f (patch) | |
tree | d228bd52336baa688944d64be0b4f1d44b5bea9a /src | |
parent | 64c3610b55799c738e4fdc7236fadd635649c0f4 (diff) |
networkd: fix bad memory access for routes that are note attached to a link yet (#3499)
Corrects: 1b566071
Also see: https://github.com/systemd/systemd/pull/3478#issuecomment-225008542
Diffstat (limited to 'src')
-rw-r--r-- | src/network/networkd-route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c index 6359f967a2..52037f9c6d 100644 --- a/src/network/networkd-route.c +++ b/src/network/networkd-route.c @@ -492,7 +492,7 @@ int route_configure( assert(route->family == AF_INET || route->family == AF_INET6); if (route_get(link, route->family, &route->dst, route->dst_prefixlen, route->tos, route->priority, route->table, NULL) <= 0 && - set_size(route->link->routes) >= ROUTES_PER_LINK_MAX) + set_size(link->routes) >= ROUTES_PER_LINK_MAX) return -E2BIG; r = sd_rtnl_message_new_route(link->manager->rtnl, &req, |