* sysdeps/posix/getaddrinfo.c (getaddrinfo): Add _res_hconf_init
if necessary.
This commit is contained in:
parent
18a74157a6
commit
1f0398248c
@ -1,5 +1,8 @@
|
|||||||
2008-05-14 Ulrich Drepper <drepper@redhat.com>
|
2008-05-14 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/posix/getaddrinfo.c (getaddrinfo): Add _res_hconf_init
|
||||||
|
if necessary.
|
||||||
|
|
||||||
* sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
|
* sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
|
||||||
and SCTP.
|
and SCTP.
|
||||||
|
|
||||||
|
@ -61,6 +61,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include <not-cancel.h>
|
#include <not-cancel.h>
|
||||||
#include <nscd/nscd-client.h>
|
#include <nscd/nscd-client.h>
|
||||||
#include <nscd/nscd_proto.h>
|
#include <nscd/nscd_proto.h>
|
||||||
|
#include <resolv/res_hconf.h>
|
||||||
|
|
||||||
#ifdef HAVE_LIBIDN
|
#ifdef HAVE_LIBIDN
|
||||||
extern int __idna_to_ascii_lz (const char *input, char **output, int flags);
|
extern int __idna_to_ascii_lz (const char *input, char **output, int flags);
|
||||||
@ -2089,6 +2090,10 @@ getaddrinfo (const char *name, const char *service,
|
|||||||
if ((hints->ai_flags & AI_CANONNAME) && name == NULL)
|
if ((hints->ai_flags & AI_CANONNAME) && name == NULL)
|
||||||
return EAI_BADFLAGS;
|
return EAI_BADFLAGS;
|
||||||
|
|
||||||
|
/* Initialize configurations. */
|
||||||
|
if (__builtin_expect (!_res_hconf.initialized, 0))
|
||||||
|
_res_hconf_init ();
|
||||||
|
|
||||||
struct in6addrinfo *in6ai = NULL;
|
struct in6addrinfo *in6ai = NULL;
|
||||||
size_t in6ailen = 0;
|
size_t in6ailen = 0;
|
||||||
bool seen_ipv4 = false;
|
bool seen_ipv4 = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user