diff options
| author | Dirk Ziegelmeier <[email protected]> | 2019-01-28 14:19:15 +0100 |
|---|---|---|
| committer | Simon Goldschmidt <[email protected]> | 2019-02-18 12:59:10 +0100 |
| commit | 1892f445e2d0c496fd8d2470017ddc13da8fc3d0 (patch) | |
| tree | 241dc35027ad01422eaefdcfbab2aa866219d8c4 | |
| parent | 484f0fbafa4853ef9e7d1a2b159d8306f580dc17 (diff) | |
Apply patch #9737: Fix DHCPv6 DNS server assignment
(cherry picked from commit 941300c21c45a4dbf1c074b29a9ca3c88c9f6553)
| -rw-r--r-- | src/core/ipv6/dhcp6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ipv6/dhcp6.c b/src/core/ipv6/dhcp6.c index 7cf98a52..b1d2836b 100644 --- a/src/core/ipv6/dhcp6.c +++ b/src/core/ipv6/dhcp6.c @@ -527,7 +527,7 @@ dhcp6_handle_config_reply(struct netif *netif, struct pbuf *p_msg_in) u16_t idx; u8_t n; - memset(&dns_addr, 0, sizeof(dns_addr)); + ip_addr_set_zero_ip6(&dns_addr); dns_addr6 = ip_2_ip6(&dns_addr); for (n = 0, idx = op_start; (idx < op_start + op_len) && (n < LWIP_DHCP6_PROVIDE_DNS_SERVERS); n++, idx += sizeof(struct ip6_addr_packed)) { |
