wwan: don't assume DNS info is always available for IPv6

See also "5df024f57a wwan: don't assume DNS info is always available"
which does the same for IPv4.

(cherry picked from commit cec7ade86c)
(cherry picked from commit 00f14736e6)
(cherry picked from commit 7c09527d5e)
(cherry picked from commit e3e86af74e)
(cherry picked from commit 0e812da25e)
This commit is contained in:
Thomas Haller 2018-10-11 23:57:53 +02:00
parent 0a95b1a593
commit 26b4122825

View file

@ -1033,7 +1033,7 @@ stage3_ip6_done (NMModemBroadband *self)
/* DNS servers */
dns = mm_bearer_ip_config_get_dns (self->_priv.ipv6_config);
for (i = 0; dns[i]; i++) {
for (i = 0; dns && dns[i]; i++) {
struct in6_addr addr;
if (inet_pton (AF_INET6, dns[i], &addr)) {