diff options
author | ume <ume@FreeBSD.org> | 2005-04-14 11:44:43 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2005-04-14 11:44:43 +0000 |
commit | 61d715cfa6afc5f001cecf5d19b633d2686aba98 (patch) | |
tree | 06dacfce054a53810d52cbe5b7fd83632968a0d1 /lib/libc | |
parent | 8006d90653e02601be0ed3190e1601b45508aeb7 (diff) | |
download | FreeBSD-src-61d715cfa6afc5f001cecf5d19b633d2686aba98.zip FreeBSD-src-61d715cfa6afc5f001cecf5d19b633d2686aba98.tar.gz |
remove needless res_init() call.
Inspired by: NetBSD
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/getaddrinfo.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/libc/net/getaddrinfo.c b/lib/libc/net/getaddrinfo.c index cbdbcf0..b695e58 100644 --- a/lib/libc/net/getaddrinfo.c +++ b/lib/libc/net/getaddrinfo.c @@ -2310,11 +2310,6 @@ res_queryN(name, target) rcode = NOERROR; ancount = 0; - if ((_res.options & RES_INIT) == 0 && res_init() == -1) { - h_errno = NETDB_INTERNAL; - return (-1); - } - buf = malloc(MAXPACKET); if (!buf) { h_errno = NETDB_INTERNAL; @@ -2561,10 +2556,6 @@ res_querydomainN(name, domain, target) const char *longname = nbuf; size_t n, d; - if ((_res.options & RES_INIT) == 0 && res_init() == -1) { - h_errno = NETDB_INTERNAL; - return (-1); - } #ifdef DEBUG if (_res.options & RES_DEBUG) printf(";; res_querydomain(%s, %s)\n", |