From: Roy Marples Date: Tue, 27 Mar 2012 17:59:41 +0000 (+0000) Subject: Don't corrupt our route table when we fail to add a route for any reason. X-Git-Tag: v5.5.6~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e055cabc5ebb9495d1d01a78a14207c575c7914;p=thirdparty%2Fdhcpcd.git Don't corrupt our route table when we fail to add a route for any reason. --- diff --git a/configure.c b/configure.c index e61184be..cd1d8c54 100644 --- a/configure.c +++ b/configure.c @@ -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); }