summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2018-04-19 13:06:07 +0100
committerRoy Marples <roy@marples.name>2018-04-19 13:06:07 +0100
commit47cfa60eb860e6edf16be7bbd3c9b8043d754343 (patch)
tree60db8d9c7dccf70cf40f8753f22441d4d7b2f28b
parentc42ca6e4825f47435bc8de53cd142aa1b66ed51b (diff)
downloaddhcpcd-47cfa60eb860e6edf16be7bbd3c9b8043d754343.tar.xz
routing: Fix case when cloning route changes but needs to be replaced.
-rw-r--r--src/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/route.c b/src/route.c
index dc43a8c0..09545cdc 100644
--- a/src/route.c
+++ b/src/route.c
@@ -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) {