diff --git a/docs/scripting.xml b/docs/scripting.xml
index 7df90ccc5..cf6cf4e5d 100644
--- a/docs/scripting.xml
+++ b/docs/scripting.xml
@@ -1905,7 +1905,7 @@ host.os = {
This is an array of traceroute hops, present when the
option was used. Each entry is a
host table with fields name,
- ip and times.srtt (round
+ ip and srtt (round
trip time). The TTL for an entry is implicit given its position
in the table. An empty table represents a timed-out hop.
diff --git a/nse_nmaplib.cc b/nse_nmaplib.cc
index 451f00983..5c56cf7c9 100644
--- a/nse_nmaplib.cc
+++ b/nse_nmaplib.cc
@@ -205,9 +205,7 @@ void set_hostinfo(lua_State *L, Target *currenths) {
nseU_setsfield(L, -1, "ip", inet_ntop_ez(&it->addr, sizeof(it->addr)));
if (!it->name.empty())
nseU_setsfield(L, -1, "name", it->name.c_str());
- lua_newtable(L);
nseU_setnfield(L, -1, "srtt", it->rtt / 1000.0);
- lua_setfield(L, -2, "times");
}
lua_rawseti(L, -2, lua_rawlen(L, -2)+1);
}
diff --git a/scripts/traceroute-geolocation.nse b/scripts/traceroute-geolocation.nse
index 7eed3d784..e1ee35674 100644
--- a/scripts/traceroute-geolocation.nse
+++ b/scripts/traceroute-geolocation.nse
@@ -154,7 +154,7 @@ action = function(host)
-- avoid timedout hops, marked as empty entries
-- do not add the current scanned host.ip
if hop.ip then
- local rtt = tonumber(hop.times.srtt) * 1000
+ local rtt = tonumber(hop.srtt) * 1000
local geo
if not ipOps.isPrivate(hop.ip) then
-- be sure not to cache the target address, since it's not likely to be