From: SidhuRupinder <158014905+SidhuRupinder@users.noreply.github.com> Date: Wed, 13 Mar 2024 05:16:46 +0000 (+0530) Subject: local-addresses: call 'assert_not_reached' where appropriate (#31728) X-Git-Tag: v256-rc1~559 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d08e23558e3bc2ade9ab59761c47c3ca26a1144;p=thirdparty%2Fsystemd.git local-addresses: call 'assert_not_reached' where appropriate (#31728) Added code for calling the 'assert_not_reached' function as the value of the 'family' parameter must be either 'AF_INET' or 'AF_INET6'. --- diff --git a/src/shared/local-addresses.c b/src/shared/local-addresses.c index 842156fcfc3..5d5435f54b5 100644 --- a/src/shared/local-addresses.c +++ b/src/shared/local-addresses.c @@ -211,7 +211,7 @@ int local_addresses( break; default: - continue; + assert_not_reached(); } r = add_local_address(&list, &n_list, ifi, scope, family, &a);