From 3a0aa06db1088cae8c783ea1a2396b5af32dc6a2 Mon Sep 17 00:00:00 2001 From: kris Date: Sat, 5 Jun 2010 00:46:48 +0000 Subject: [PATCH] Fix a bug in qscan.nse which kept a confidence level of 0.9995 from working; Marcin Hoffmann reported the problem. --- CHANGELOG | 4 ++++ scripts/qscan.nse | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index bb09aedc8..b5f8ca42c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,9 @@ # Nmap Changelog ($Id$); -*-text-*- +o [NSE] Fixed a bug in qscan.nse which gave an error if a confidence + level of 0.9995 was used. Thanks to Marcin Hoffmann for noticing + the problem. [Kris] + o [NSE] Added ntp-monlist.nse which discovers NTP server, peer and client hosts associated with a scanned target by sending NTPv2 Private Mode 'monitor' and 'peers' commands to the target. [jah] diff --git a/scripts/qscan.nse b/scripts/qscan.nse index 7bbb861a8..6cdc2db1c 100644 --- a/scripts/qscan.nse +++ b/scripts/qscan.nse @@ -283,7 +283,7 @@ local getopts = function() if conf ~= 0.75 and conf ~= 0.9 and conf ~= 0.95 and conf ~= 0.975 and - conf ~= 0.99 and conf ~= 0.995 and conf ~= 0.995 then + conf ~= 0.99 and conf ~= 0.995 and conf ~= 0.9995 then bool = false err = "Invalid confidence level" end