diff options
author | Thomas Haller <thaller@redhat.com> | 2017-09-12 10:08:00 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-09-13 08:17:31 +0200 |
commit | 846b02880d05376e1f6e16721fcbd79095a76570 (patch) | |
tree | 0d974c2b49fa54736810ad8b185ea8e9edd85c18 | |
parent | eb948e793ea93cc7f7941d3c34c0ec58eb7b73a4 (diff) | |
download | NetworkManager-846b02880d05376e1f6e16721fcbd79095a76570.tar.gz |
core: fix invalid assertion in nm_ip6_config_get_num_routes().
Fixes: cfd1851c0067773211524c2b648330b6ee7a066c
-rw-r--r-- | src/nm-ip6-config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm-ip6-config.c b/src/nm-ip6-config.c index 3c8bf709fb..85883241d1 100644 --- a/src/nm-ip6-config.c +++ b/src/nm-ip6-config.c @@ -1945,7 +1945,7 @@ nm_ip6_config_get_num_routes (const NMIP6Config *self) const NMDedupMultiHeadEntry *head_entry; head_entry = nm_ip6_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; } |