diff options
Diffstat (limited to 'axfrdns.c')
-rw-r--r-- | axfrdns.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -23,6 +23,7 @@ #include "response.h" #include "ip6.h" #include "clientloc.h" +#include "edns0.h" extern int respond(char *,char *,char *); @@ -346,6 +347,9 @@ int main() if (byte_diff(qclass,2,DNS_C_IN) && byte_diff(qclass,2,DNS_C_ANY)) strerr_die2x(111,FATAL,"bogus query: bad class"); + pos = check_edns0(header, buf, len, pos); + if (!pos) die_truncated(); + qlog(ip,port,header,zone,qtype," "); if (byte_equal(qtype,2,DNS_T_AXFR)) { |