]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
routing: Fix case when cloning route changes but needs to be replaced.
authorRoy Marples <roy@marples.name>
Thu, 19 Apr 2018 12:06:07 +0000 (13:06 +0100)
committerRoy Marples <roy@marples.name>
Thu, 19 Apr 2018 12:06:07 +0000 (13:06 +0100)
src/route.c

index dc43a8c0f973661bfb55de8186ee6587ca525eef..09545cdc0c290ded9c3b333f115d2d1e105a2048 100644 (file)
@@ -359,7 +359,7 @@ rt_add(struct rt *nrt, struct rt *ort)
         * As such, we need to delete and re-add the route to flush children
         * to correct the flags. */
        if (change && ort != NULL && ort->rt_flags & RTF_CLONING)
-               change = true;
+               change = false;
 #endif
 
        if (change) {