From 886ca75ac33de252158a63074cc7cf9d0215c962 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 1 Nov 2013 10:57:18 +0100 Subject: [PATCH] core: fix crash when reading routes from VPN Ip6Config (bgo #706332) https://bugzilla.gnome.org/show_bug.cgi?id=706332 Reported-by: Nicolas Iooss Signed-off-by: Thomas Haller --- src/vpn-manager/nm-vpn-connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vpn-manager/nm-vpn-connection.c b/src/vpn-manager/nm-vpn-connection.c index 6962e301d0..263f25350a 100644 --- a/src/vpn-manager/nm-vpn-connection.c +++ b/src/vpn-manager/nm-vpn-connection.c @@ -1084,7 +1084,7 @@ nm_vpn_connection_ip6_config_get (DBusGProxy *proxy, * the VPN server, we want to use the NM created route instead of * whatever the server provides. */ - if (IN6_ARE_ADDR_EQUAL (&route.network, priv->ip6_external_gw) && route.plen == 128) + if (priv->ip6_external_gw && IN6_ARE_ADDR_EQUAL (&route.network, priv->ip6_external_gw) && route.plen == 128) continue; /* Otherwise accept the VPN-provided route */