]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkd-link: fix handler typo for route_remove() (#3433)
authortomty89 <tom.ty89@gmail.com>
Sat, 4 Jun 2016 10:31:07 +0000 (18:31 +0800)
committerDaniel Mack <github@zonque.org>
Sat, 4 Jun 2016 10:31:07 +0000 (12:31 +0200)
Obviously we've been using the wrong handler here. Fixes #3352.

src/network/networkd-link.c

index ba4147f875639c4c6bc2fd7a62d1c5fbebca771a..ee52b1ce1e1fce827b3a6857fea7548cb8b6bde5 100644 (file)
@@ -2252,7 +2252,7 @@ static int link_drop_foreign_config(Link *link) {
                 if (route->protocol == RTPROT_KERNEL)
                         continue;
 
-                r = route_remove(route, link, link_address_remove_handler);
+                r = route_remove(route, link, link_route_remove_handler);
                 if (r < 0)
                         return r;
         }