From 19117c80be1306330100545d29b5fb33a31cf1d0 Mon Sep 17 00:00:00 2001 From: jah Date: Sat, 10 Apr 2010 21:25:50 +0000 Subject: [PATCH] Fixed error in dns.lua reported by Eugene Alexeev: nselib/dns.lua:110: attempt to get length of field 'dtype' (a number value) --- nselib/dns.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/dns.lua b/nselib/dns.lua index e5fa3f236..7a0920a42 100644 --- a/nselib/dns.lua +++ b/nselib/dns.lua @@ -107,7 +107,7 @@ local function getAuthDns(rPkt) if #rPkt.answers == 0 then return false else - if #rPkt.answers[1].dtype == types.CNAME then + if rPkt.answers[1].dtype == types.CNAME then return {cname = rPkt.answers[1].domain} end end