]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't corrupt our route table when we fail to add a route for any reason.
authorRoy Marples <roy@marples.name>
Tue, 27 Mar 2012 17:59:41 +0000 (17:59 +0000)
committerRoy Marples <roy@marples.name>
Tue, 27 Mar 2012 17:59:41 +0000 (17:59 +0000)
configure.c

index e61184becc8bdc6bf4ef3488c5575d93ba7adc98..cd1d8c5434c1ac6096f8e5ae4e3a5f2fba72d6aa 100644 (file)
@@ -730,6 +730,7 @@ build_routes(void)
                                lrt->next = rtn;
                        rt->next = nrs;
                        nrs = rt;
+                       rt = lrt; /* When we loop this makes lrt correct */
                }
                free_routes(dnr);
        }