From 43b364f518bc6c66fb816099950863d565512994 Mon Sep 17 00:00:00 2001 From: mrg Date: Tue, 7 Apr 1998 04:51:36 +0000 Subject: [PATCH] refuse an inverse query if the length is not INT32SZ. from vix. --- usr.sbin/named/named/ns_req.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/named/named/ns_req.c b/usr.sbin/named/named/ns_req.c index 1063a15a87ad..10edc8ec39d5 100644 --- a/usr.sbin/named/named/ns_req.c +++ b/usr.sbin/named/named/ns_req.c @@ -1,4 +1,4 @@ -/* $NetBSD: ns_req.c,v 1.4 1997/10/04 15:12:07 mrg Exp $ */ +/* $NetBSD: ns_req.c,v 1.5 1998/04/07 04:51:36 mrg Exp $ */ #if !defined(lint) && !defined(SABER) static char sccsid[] = "@(#)ns_req.c 4.47 (Berkeley) 7/1/91"; @@ -1010,7 +1010,7 @@ req_iquery(hp, cpp, eom, buflenp, msg, from) switch (type) { case T_A: #ifndef INVQ - if (!fake_iquery) + if (!fake_iquery || dlen != INT32SZ) return (Refuse); #endif #ifdef INVQ