mirror of
https://github.com/nmap/nmap.git
synced 2026-06-27 03:33:07 +00:00
Remove dead code from nse_nmaplib.cc.
This commit is contained in:
parent
041e39f88a
commit
c2deb92228
1 changed files with 0 additions and 8 deletions
|
|
@ -487,7 +487,6 @@ static int l_set_port_version(lua_State *L, Target* target, Port* port) {
|
|||
SCRIPT_ENGINE_GETSTRING(hostname);
|
||||
SCRIPT_ENGINE_GETSTRING(ostype);
|
||||
SCRIPT_ENGINE_GETSTRING(devicetype);
|
||||
// SCRIPT_ENGINE_GETSTRING(fingerprint);
|
||||
|
||||
SCRIPT_ENGINE_GETSTRING(service_tunnel);
|
||||
if(service_tunnel == NULL)
|
||||
|
|
@ -515,11 +514,6 @@ static int l_set_port_version(lua_State *L, Target* target, Port* port) {
|
|||
else
|
||||
luaL_argerror(L, 3, "Invalid value for probestate.");
|
||||
|
||||
// port->setServiceProbeResults(probestate, name,
|
||||
// tunnel, product, version,
|
||||
// extrainfo, hostname, ostype,
|
||||
// devicetype, fingerprint);
|
||||
|
||||
//should prevent a assertion-failure during output if the OutputTable does
|
||||
//not contain columns for the fields other than the name
|
||||
if(o.servicescan){
|
||||
|
|
@ -534,7 +528,6 @@ static int l_set_port_version(lua_State *L, Target* target, Port* port) {
|
|||
NULL, NULL);
|
||||
}
|
||||
|
||||
|
||||
free(service_tunnel);
|
||||
free(name);
|
||||
free(product);
|
||||
|
|
@ -543,7 +536,6 @@ static int l_set_port_version(lua_State *L, Target* target, Port* port) {
|
|||
free(hostname);
|
||||
free(ostype);
|
||||
free(devicetype);
|
||||
// free(fingerprint);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue