diff options
author | Thomas Haller <thaller@redhat.com> | 2016-08-20 10:22:22 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-08-21 22:39:52 +0200 |
commit | bf5d6d43a7632cf9e6fb5cba99381204c56e7383 (patch) | |
tree | 2236b5d0afaee719a461c36b812ae439ea0149ad | |
parent | 98ac8bfd12f6dea579dcdd3c0ca56f33be552351 (diff) | |
download | NetworkManager-th/vpn-ifindex-fix-rh1368354.tar.gz |
vpn: ignore unexpected default-route for nm_vpn_connection_ip6_config_get()th/vpn-ifindex-fix-rh1368354
The VPN data comes from an external source, it may be bogus.
Default-routes are not allowed on this point and would trigger
an assertion afterwards. Skip over them.
-rw-r--r-- | src/vpn-manager/nm-vpn-connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vpn-manager/nm-vpn-connection.c b/src/vpn-manager/nm-vpn-connection.c index f9c4f01e68..92c5bd8fa3 100644 --- a/src/vpn-manager/nm-vpn-connection.c +++ b/src/vpn-manager/nm-vpn-connection.c @@ -1640,7 +1640,7 @@ nm_vpn_connection_ip6_config_get (NMVpnConnection *self, GVariant *dict) if (!ip6_addr_from_variant (dest, &route.network)) goto next; - if (prefix > 128) + if (prefix > 128 || prefix == 0) goto next; route.plen = prefix; |