1 From 5e40582d549b4a186de2fea9efafadd06904424c Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi>
3 Date: Thu, 18 Jun 2009 06:55:46 +0000
4 Subject: [PATCH] inet: do not filter responses in res_query
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 res_query was silently rejecting responses against T_ANY DNS
14 Remove the type-filtering from res_query altogether.
15 __dns_lookup is supposed to return the proper stuff that you asked
18 Signed-off-by: Timo Teräs <timo.teras@iki.fi>
19 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
21 libc/inet/resolv.c | 9 ++++-----
22 1 file changed, 4 insertions(+), 5 deletions(-)
24 diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
25 index e738098..7bd634c 100644
26 --- a/libc/inet/resolv.c
27 +++ b/libc/inet/resolv.c
28 @@ -3740,11 +3740,10 @@ int res_query(const char *dname, int class, int type,
32 - if (a.atype == type) { /* CNAME */
35 - memcpy(answer, packet, i);
39 + memcpy(answer, packet, i);