1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Use std::multiset to keep script outputs in order instead of sorting.

This commit is contained in:
dmiller
2021-04-27 19:22:09 +00:00
parent 3adaa69cb2
commit bf9d60734d
6 changed files with 28 additions and 28 deletions

View File

@@ -125,7 +125,7 @@ static int script_set_output (lua_State *L)
lua_len(L, 3);
sr.set_output_str(luaL_checkstring(L, 3), luaL_checkinteger(L,-1));
}
script_scan_results.push_back(sr);
script_scan_results.insert(sr);
return 0;
}
@@ -139,7 +139,7 @@ static int host_set_output (lua_State *L)
lua_len(L, 4);
sr.set_output_str(luaL_checkstring(L, 4), luaL_checkinteger(L,-1));
}
target->scriptResults.push_back(sr);
target->scriptResults.insert(sr);
return 0;
}