diff options
author | 2013-04-30 12:02:39 +0000 | |
---|---|---|
committer | 2013-04-30 12:02:39 +0000 | |
commit | c5221d4580655bc3139dfff19c6f407e70504097 (patch) | |
tree | 959ef9a66fa38beba40bd98c06aab6f678ca4b3b /lib/libc/asr/getrrsetbyname_async.c | |
parent | Replace the statically defined protection bits with a macro, which will (diff) | |
download | wireguard-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/getrrsetbyname_async.c')
-rw-r--r-- | lib/libc/asr/getrrsetbyname_async.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/asr/getrrsetbyname_async.c b/lib/libc/asr/getrrsetbyname_async.c index 540d13bd4fe..1e0e77617dc 100644 --- a/lib/libc/asr/getrrsetbyname_async.c +++ b/lib/libc/asr/getrrsetbyname_async.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getrrsetbyname_async.c,v 1.3 2012/11/24 15:12:48 eric Exp $ */ +/* $OpenBSD: getrrsetbyname_async.c,v 1.4 2013/04/30 12:02:39 eric Exp $ */ /* * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> * @@ -97,7 +97,7 @@ getrrsetbyname_async_run(struct async *as, struct async_res *ar) as->as.rrset.name, as->as.rrset.class, as->as.rrset.type, - NULL, 0, as->as_ctx); + as->as_ctx); if (as->as.rrset.subq == NULL) { ar->ar_rrset_errno = ERRSET_FAIL; async_set_state(as, ASR_STATE_HALT); @@ -169,7 +169,7 @@ getrrsetbyname_async_run(struct async *as, struct async_res *ar) /* The rest of this file is taken from the orignal implementation. */ -/* $OpenBSD: getrrsetbyname_async.c,v 1.3 2012/11/24 15:12:48 eric Exp $ */ +/* $OpenBSD: getrrsetbyname_async.c,v 1.4 2013/04/30 12:02:39 eric Exp $ */ /* * Copyright (c) 2001 Jakob Schlyter. All rights reserved. |