diff --git a/nse_nmaplib.cc b/nse_nmaplib.cc index 43d42075d..bbfa96d55 100644 --- a/nse_nmaplib.cc +++ b/nse_nmaplib.cc @@ -153,8 +153,6 @@ void set_hostinfo(lua_State *L, Target *currenths) { setnfield(L, -1, "timeout", (lua_Number) currenths->to.timeout / 1000000.0); lua_setfield(L, -2, "times"); - FingerPrintResults *FPR = currenths->FPR; - /* add distance (in hops) if traceroute has been performed */ if (currenths->traceroute_hops.size() > 0) { @@ -181,6 +179,8 @@ void set_hostinfo(lua_State *L, Target *currenths) { lua_setfield(L, -2, "traceroute"); } + FingerPrintResults *FPR = currenths->FPR; + /* if there has been an os scan which returned a pretty certain * result, we will use it in the scripts * matches which aren't perfect are not needed in the scripts