mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 06:38:11 +02:00
core: fix invalid assertion in nm_ip4_config_get_num_routes()
Fixes: 935411e5c0
This commit is contained in:
parent
121321542e
commit
eb948e793e
1 changed files with 1 additions and 1 deletions
|
|
@ -2310,7 +2310,7 @@ nm_ip4_config_get_num_routes (const NMIP4Config *self)
|
||||||
const NMDedupMultiHeadEntry *head_entry;
|
const NMDedupMultiHeadEntry *head_entry;
|
||||||
|
|
||||||
head_entry = nm_ip4_config_lookup_routes (self);
|
head_entry = nm_ip4_config_lookup_routes (self);
|
||||||
nm_assert ((head_entry ? head_entry->len : 0) == c_list_length (&head_entry->lst_entries_head));
|
nm_assert (!head_entry || head_entry->len == c_list_length (&head_entry->lst_entries_head));
|
||||||
return head_entry ? head_entry->len : 0;
|
return head_entry ? head_entry->len : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue