diff options
Diffstat (limited to 'lib/libc/asr/getaddrinfo.c')
-rw-r--r-- | lib/libc/asr/getaddrinfo.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/asr/getaddrinfo.c b/lib/libc/asr/getaddrinfo.c index 84b11ce5b80..9e8ba91c5b2 100644 --- a/lib/libc/asr/getaddrinfo.c +++ b/lib/libc/asr/getaddrinfo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getaddrinfo.c,v 1.1 2012/09/08 11:08:21 eric Exp $ */ +/* $OpenBSD: getaddrinfo.c,v 1.2 2013/05/27 17:31:01 eric Exp $ */ /* * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> * @@ -31,6 +31,8 @@ getaddrinfo(const char *hostname, const char *servname, struct async_res ar; int saved_errno = errno; + res_init(); + as = getaddrinfo_async(hostname, servname, hints, NULL); if (as == NULL) { if (errno == ENOMEM) { |