From 7552cbcc472a585a7e8b64ed2aae502b75d1ee5a Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Sun, 28 Apr 2013 03:22:22 +0200 Subject: [PATCH] Ignore nonzero Z in requests --- dns.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/dns.c b/dns.c index b01196c..e7c0de1 100644 --- a/dns.c +++ b/dns.c @@ -251,8 +251,6 @@ ssize_t static dnshandle(dns_opt_t *opt, const unsigned char *inbuf, size_t insi if (inbuf[2] & 128) { /* printf("Got response?\n"); */ error = 1; goto error; } // check opcode if (((inbuf[2] & 120) >> 3) != 0) { /* printf("Opcode nonzero?\n"); */ error = 4; goto error; } - // check Z - if (((inbuf[3] & 112) >> 4) != 0) { /* printf("Z nonzero?\n"); */ error = 1; goto error; } // unset TC outbuf[2] &= ~2; // unset RA