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:
SidhuRupinder 2024-03-13 10:46:46 +05:30 committed by GitHub
parent a793133963
commit 7d08e23558
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -211,7 +211,7 @@ int local_addresses(
break;
default:
continue;
assert_not_reached();
}
r = add_local_address(&list, &n_list, ifi, scope, family, &a);