diff options
Diffstat (limited to 'lib/libc/asr/res_search_async.c')
-rw-r--r-- | lib/libc/asr/res_search_async.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/asr/res_search_async.c b/lib/libc/asr/res_search_async.c index 26be7d91622..a24bd3caae4 100644 --- a/lib/libc/asr/res_search_async.c +++ b/lib/libc/asr/res_search_async.c @@ -1,4 +1,4 @@ -/* $OpenBSD: res_search_async.c,v 1.20 2017/02/23 17:04:02 eric Exp $ */ +/* $OpenBSD: res_search_async.c,v 1.21 2017/02/27 10:44:46 jca Exp $ */ /* * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> * @@ -169,9 +169,9 @@ res_search_async_run(struct asr_query *as, struct asr_result *ar) if (as->as_dom_flags & ASYNC_DOM_DOMAIN) { if (ar->ar_h_errno == NO_DATA) - as->as.search.flags |= ASYNC_NODATA; + as->as_flags |= ASYNC_NODATA; else if (ar->ar_h_errno == TRY_AGAIN) - as->as.search.flags |= ASYNC_AGAIN; + as->as_flags |= ASYNC_AGAIN; } async_set_state(as, ASR_STATE_NEXT_DOMAIN); @@ -181,9 +181,9 @@ res_search_async_run(struct asr_query *as, struct asr_result *ar) if (as->as.search.saved_h_errno != HERRNO_UNSET) ar->ar_h_errno = as->as.search.saved_h_errno; - else if (as->as.search.flags & ASYNC_NODATA) + else if (as->as_flags & ASYNC_NODATA) ar->ar_h_errno = NO_DATA; - else if (as->as.search.flags & ASYNC_AGAIN) + else if (as->as_flags & ASYNC_AGAIN) ar->ar_h_errno = TRY_AGAIN; /* * Else, we got the ar_h_errno value set by res_query_async() |