]> git.ipfire.org Git - people/ms/network.git/commitdiff
route: Correctly end loop when network was invalid
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Tue, 30 May 2017 09:25:37 +0000 (11:25 +0200)
committerJonatan Schlag <jonatan.schlag@ipfire.org>
Tue, 30 May 2017 09:25:37 +0000 (11:25 +0200)
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
src/functions/functions.route

index 303415ac887de4c8fe96ef665d838949862ee7f6..026656c1c3e3f17d8c037015f019d414b53318a2 100644 (file)
@@ -158,6 +158,7 @@ route_remove() {
                if ! ip_is_network ${_network} && ! ip_is_valid ${_network}; then
                        error "Invalid IP address or network: ${_network}"
                        error=${EXIT_ERROR}
+                       continue
                fi
 
                local found="false"