1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-25 08:59:01 +00:00

Remove misleading comments.

There is more than just sorting going on here; it's also whether some
output is written.
This commit is contained in:
david
2013-06-13 15:22:13 +00:00
parent dcca84eb0d
commit 8c7e0881ec

View File

@@ -2177,7 +2177,6 @@ void printscriptresults(ScriptResults *scriptResults, stype scantype) {
char *script_output;
if (scriptResults->size() > 0) {
// No sense sorting if we don't need too
scriptResults->sort(scriptid_lessthan);
if (scantype == SCRIPT_PRE_SCAN) {
xml_start_tag("prescript");
@@ -2208,7 +2207,6 @@ void printhostscriptresults(Target *currenths) {
char *script_output;
if (currenths->scriptResults.size() > 0) {
//no point sorting an empty list
currenths->scriptResults.sort(scriptid_lessthan);
xml_start_tag("hostscript");
log_write(LOG_PLAIN, "\nHost script results:\n");