Commit 87387d8a authored by Mark Andrews's avatar Mark Andrews
Browse files

4793. [bug] nsupdate -[46] could overflow the array of server

                        addresses. [RT #46402]
parent 5c76f366
4793. [bug] nsupdate -[46] could overflow the array of server
addresses. [RT #46402]
4792. [bug] Fix map file header correctness check. [RT #38418] 4792. [bug] Fix map file header correctness check. [RT #38418]
   
4791. [doc] Fixed outdated documentation about export libraries. 4791. [doc] Fixed outdated documentation about export libraries.
......
...@@ -944,16 +944,21 @@ setup_system(void) { ...@@ -944,16 +944,21 @@ setup_system(void) {
case AF_INET: case AF_INET:
if (have_ipv4) { if (have_ipv4) {
sa->type.sin.sin_port = htons(dnsport); sa->type.sin.sin_port = htons(dnsport);
} else {
continue;
} }
break; break;
case AF_INET6: case AF_INET6:
if (have_ipv6) { if (have_ipv6) {
sa->type.sin6.sin6_port = htons(dnsport); sa->type.sin6.sin6_port = htons(dnsport);
} else {
continue;
} }
break; break;
default: default:
fatal("bad family"); fatal("bad family");
} }
INSIST(i < ns_alloc);
servers[i++] = *sa; servers[i++] = *sa;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment