vpn: fix zero IPv6 address check

Bug introduced by commit d8e6065.

https://bugzilla.gnome.org/show_bug.cgi?id=706286

Reported-by: Nicolas Iooss <nicolas.iooss.2010_nm@m4x.org>
Acked-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Pavel Šimerda 2013-08-19 11:25:39 +02:00
parent 2fedf0a3f4
commit ff6d9b3c0f

View file

@ -1028,7 +1028,7 @@ nm_vpn_connection_ip6_config_get (DBusGProxy *proxy,
if (val)
address.plen = g_value_get_uint (val);
if (IN6_IS_ADDR_UNSPECIFIED (&address.address) && address.plen)
if (!IN6_IS_ADDR_UNSPECIFIED (&address.address) && address.plen)
nm_ip6_config_add_address (config, &address);
else {
nm_log_err (LOGD_VPN, "invalid IP6 config received!");