diff options
author | Steven Barth <steven@midlink.org> | 2014-02-24 14:36:28 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-02-24 14:36:28 +0100 |
commit | d21af09a10de15f340b5bbd05ddf0603dae0584e (patch) | |
tree | 04e4d4866e7fb037ff3dca287f443ffa3e923104 | |
parent | 24c344b621b0d8d81be2aaac806d905dbe6bbca6 (diff) |
Don't announce :: as DNS
-rw-r--r-- | src/router.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/router.c b/src/router.c index ddec21e..3ba552d 100644 --- a/src/router.c +++ b/src/router.c @@ -276,7 +276,7 @@ static void send_router_advert(struct uloop_timeout *event) bool have_public = false; size_t cnt = 0; - struct in6_addr dns_pref, *dns_addr = &dns_pref; + struct in6_addr dns_pref = IN6ADDR_ANY_INIT, *dns_addr = &dns_pref; uint32_t dns_time = 0; size_t dns_cnt = 1; @@ -344,7 +344,7 @@ static void send_router_advert(struct uloop_timeout *event) dns_time = 2 * MaxRtrAdvInterval; } - if (!dns_addr) + if (!dns_addr || IN6_IS_ADDR_UNSPECIFIED(dns_addr)) dns_cnt = 0; struct { |