]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix an issue where we would only use a CSR if we had not warned about using it.
authorRoy Marples <roy@marples.name>
Tue, 20 Mar 2012 13:59:41 +0000 (13:59 +0000)
committerRoy Marples <roy@marples.name>
Tue, 20 Mar 2012 13:59:41 +0000 (13:59 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index cfbc2a0efb7b47dcba8112c661501e26b895ea31..91a60092bc5d8b15881fcb9dfbea49371c4da5fb 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -792,8 +792,8 @@ get_option_routes(const struct dhcp_message *dhcp,
                            "%s: using Classless Static Routes (RFC3442)",
                            ifname);
                        *opts |= DHCPCD_CSR_WARNED;
-                       return routes;
                }
+               return routes;
        }
 
        /* OK, get our static routes first. */