From 10d23e924f6b98e2b0a78f26d2d63f23cc0f2483 Mon Sep 17 00:00:00 2001 From: kris Date: Fri, 17 Sep 2010 20:30:27 +0000 Subject: [PATCH] trivial: move a statement back closer to its context --- nse_nmaplib.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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