mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-09 17:00:40 +01:00
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)
This commit is contained in:
parent
ec1c512e40
commit
00f14736e6
1 changed files with 1 additions and 1 deletions
|
|
@ -1063,7 +1063,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)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue