aboutsummaryrefslogtreecommitdiff
path: root/resolv/res_send.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2022-06-24 18:16:41 +0200
committerFlorian Weimer <fweimer@redhat.com>2022-06-24 18:18:44 +0200
commitf282cdbe7f436c75864e5640a409a10485e9abb2 (patch)
tree82983c97f959dd19508b1ef3c89f2aa1b8e8db30 /resolv/res_send.c
parent62a321b12d0e397af88fa422db65079332f971dc (diff)
downloadglibc-f282cdbe7f436c75864e5640a409a10485e9abb2.zip
glibc-f282cdbe7f436c75864e5640a409a10485e9abb2.tar.gz
glibc-f282cdbe7f436c75864e5640a409a10485e9abb2.tar.bz2
resolv: Implement no-aaaa stub resolver option
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'resolv/res_send.c')
-rw-r--r--resolv/res_send.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/resolv/res_send.c b/resolv/res_send.c
index d6c85fd..6a08e72 100644
--- a/resolv/res_send.c
+++ b/resolv/res_send.c
@@ -438,8 +438,13 @@ context_send_common (struct resolv_context *ctx,
RES_SET_H_ERRNO (&_res, NETDB_INTERNAL);
return -1;
}
- int result = __res_context_send (ctx, buf, buflen, NULL, 0, ans, anssiz,
- NULL, NULL, NULL, NULL, NULL);
+
+ int result;
+ if (__res_handle_no_aaaa (ctx, buf, buflen, ans, anssiz, &result))
+ return result;
+
+ result = __res_context_send (ctx, buf, buflen, NULL, 0, ans, anssiz,
+ NULL, NULL, NULL, NULL, NULL);
__resolv_context_put (ctx);
return result;
}