summaryrefslogtreecommitdiffstats
path: root/lib/libc/asr/getaddrinfo_async.c
diff options
context:
space:
mode:
authoreric <eric@openbsd.org>2013-04-30 12:02:39 +0000
committereric <eric@openbsd.org>2013-04-30 12:02:39 +0000
commitc5221d4580655bc3139dfff19c6f407e70504097 (patch)
tree959ef9a66fa38beba40bd98c06aab6f678ca4b3b /lib/libc/asr/getaddrinfo_async.c
parentReplace the statically defined protection bits with a macro, which will (diff)
downloadwireguard-openbsd-c5221d4580655bc3139dfff19c6f407e70504097.tar.xz
wireguard-openbsd-c5221d4580655bc3139dfff19c6f407e70504097.zip
Do not take external buffers for storing DNS responses in the internal
async API. That is actually useless and it makes the code more complicated. The required buffers are always allocated when needed.
Diffstat (limited to 'lib/libc/asr/getaddrinfo_async.c')
-rw-r--r--lib/libc/asr/getaddrinfo_async.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/asr/getaddrinfo_async.c b/lib/libc/asr/getaddrinfo_async.c
index 68824865714..30b2a6b1e41 100644
--- a/lib/libc/asr/getaddrinfo_async.c
+++ b/lib/libc/asr/getaddrinfo_async.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getaddrinfo_async.c,v 1.16 2013/04/30 06:53:07 eric Exp $ */
+/* $OpenBSD: getaddrinfo_async.c,v 1.17 2013/04/30 12:02:39 eric Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
@@ -296,13 +296,13 @@ getaddrinfo_async_run(struct async *as, struct async_res *ar)
if (as->as.ai.fqdn) {
as->as.ai.subq = res_query_async_ctx(
as->as.ai.fqdn, C_IN,
- (family == AF_INET6) ? T_AAAA : T_A, NULL, 0,
+ (family == AF_INET6) ? T_AAAA : T_A,
as->as_ctx);
}
else {
as->as.ai.subq = res_search_async_ctx(
as->as.ai.hostname, C_IN,
- (family == AF_INET6) ? T_AAAA : T_A, NULL, 0,
+ (family == AF_INET6) ? T_AAAA : T_A,
as->as_ctx);
}
if (as->as.ai.subq == NULL) {