From f8abe0c566eee647dc3f7a8394ba61d41ff6d575 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Sat, 15 Dec 2012 11:59:25 +0000 Subject: [PATCH] Fix crash in auth code for queries where class != C_IN --- src/auth.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/auth.c b/src/auth.c index a59a1b5..5ac6f21 100644 --- a/src/auth.c +++ b/src/auth.c @@ -117,7 +117,10 @@ size_t answer_auth(struct dns_header *header, char *limit, size_t qlen, time_t n GETSHORT(qclass, p); if (qclass != C_IN) - continue; + { + auth = 0; + continue; + } if (qtype == T_PTR) {