diff options
Diffstat (limited to 'resolv/res_init.c')
-rw-r--r-- | resolv/res_init.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/resolv/res_init.c b/resolv/res_init.c index 66561ffac2..e0b6a80dc7 100644 --- a/resolv/res_init.c +++ b/resolv/res_init.c @@ -176,6 +176,7 @@ __res_vinit(res_state statp, int preinit) { } statp->nscount = 0; + statp->defdname[0] = '\0'; statp->ndots = 1; statp->pfcode = 0; statp->_vcsock = -1; @@ -554,9 +555,9 @@ res_setoptions(res_state statp, const char *options, const char *source) { #ifdef RESOLVSORT /* XXX - should really support CIDR which means explicit masks always. */ +/* XXX - should really use system's version of this */ static u_int32_t -net_mask(in) /* XXX - should really use system's version of this */ - struct in_addr in; +net_mask (struct in_addr in) { u_int32_t i = ntohl(in.s_addr); |