mirror of
https://github.com/systemd/systemd
synced 2024-09-06 08:46:19 +00:00
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'.
This commit is contained in:
parent
a793133963
commit
7d08e23558
|
@ -211,7 +211,7 @@ int local_addresses(
|
|||
break;
|
||||
|
||||
default:
|
||||
continue;
|
||||
assert_not_reached();
|
||||
}
|
||||
|
||||
r = add_local_address(&list, &n_list, ifi, scope, family, &a);
|
||||
|
|
Loading…
Reference in a new issue