]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkctl.c : call 'assert_not_reached' where appropriate
authorAKHIL KUMAR <akhilpvghi@gmail.com>
Wed, 13 Mar 2024 06:32:59 +0000 (12:02 +0530)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 13 Mar 2024 12:46:05 +0000 (21:46 +0900)
networkctl.c : call 'assert_not_reached' where appropriate

src/network/networkctl.c

index 88e5b5ec9ea1272bad76adea9b0bc767535ff256..7ee0961fa6a00dae1694aa6ccfc2763c27d2751e 100644 (file)
@@ -1108,7 +1108,7 @@ static int get_gateway_description(
                         break;
 
                 default:
-                        continue;
+                        assert_not_reached();
                 }
 
                 if (!in_addr_equal(fam, &gw, gateway))