From e4e794841e3140875f2aa86b90e2ada3d61e1244 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 7 Apr 2017 13:01:21 +0200 Subject: resolv: Remove IQUERY support --- resolv/res_mkquery.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'resolv/res_mkquery.c') diff --git a/resolv/res_mkquery.c b/resolv/res_mkquery.c index d80b5318e5..4532b582a2 100644 --- a/resolv/res_mkquery.c +++ b/resolv/res_mkquery.c @@ -188,24 +188,6 @@ res_nmkquery(res_state statp, hp->arcount = htons(1); break; - case IQUERY: - /* - * Initialize answer section - */ - if (__glibc_unlikely (buflen < 1 + RRFIXEDSZ + datalen)) - return (-1); - *cp++ = '\0'; /* no domain name */ - NS_PUT16 (type, cp); - NS_PUT16 (class, cp); - NS_PUT32 (0, cp); - NS_PUT16 (datalen, cp); - if (datalen) { - memcpy(cp, data, datalen); - cp += datalen; - } - hp->ancount = htons(1); - break; - default: return (-1); } -- cgit v1.2.3