]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
resolv: Remove IQUERY support
authorFlorian Weimer <fweimer@redhat.com>
Fri, 7 Apr 2017 11:01:21 +0000 (13:01 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 7 Apr 2017 11:01:21 +0000 (13:01 +0200)
ChangeLog
NEWS
resolv/res_mkquery.c

index 9024e62fc7e0de833a721f3ce59d5969a45d3939..9ae4706a894934a92bc258f17f45c776cd8178f9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-04-07  Florian Weimer  <fweimer@redhat.com>
+
+       * resolv/res_mkquery.c (res_nmkquery): Remove IQUERY support.
+
 2017-04-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
        * sysdeps/sparc/sparc32/Makefile (libc.so-gnulib): New rule.
diff --git a/NEWS b/NEWS
index 3590878a98f1a90b3df297e2e74b8b13dbb0487c..28bb00887a3be4c12e42ee120088ceddbf087025 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -41,6 +41,9 @@ Version 2.26
   "The Rules of Hungarian Orthography, 12th edition" and the work of
   Egmont Koblinger (Bug 18934).
 
+* res_mkquery and res_nmkquery no longer support the IQUERY opcode.  DNS
+  servers have not supported this opcode for a long time.
+
 Security related changes:
 
   [Add security related changes here]
index d80b5318e5e0cffdc2c65c0db280116f25957ec3..4532b582a274dafaffc686ef0d97c7a5399d4918 100644 (file)
@@ -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);
        }