ip6: suppress merge_ip6_configs() warning

NetworkManager[815]: merge_ip6_configs: assertion `src != NULL' failed

Calling ip6_config_merge_and_apply() with a NULL src_config is fine
since that's what happens during RA or DHCP lease changes.

Reported by Johannes Sjölund
This commit is contained in:
Dan Williams 2011-12-01 16:16:00 -06:00
parent fc7941032f
commit 7ee3abe19b

View file

@ -1620,7 +1620,9 @@ ip6_config_merge_and_apply (NMDevice *self,
composite = nm_ip6_config_new ();
g_assert (composite);
merge_ip6_configs (composite, src_config);
/* Merge in the given config first, if any */
if (src_config)
merge_ip6_configs (composite, src_config);
/* Merge RA and DHCPv6 configs into the composite config */
if (priv->ac_ip6_config && (src_config != priv->ac_ip6_config))