Skip to content

Commit

Permalink
Don't script-scan targets that are already timed out
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed Aug 13, 2018
1 parent 0a0e9c4 commit 28f3b49
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nse_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,9 @@ static int run_main (lua_State *L)
for (std::vector<Target *>::iterator ti = targets->begin(); ti != targets->end(); ti++)
{
Target *target = (Target *) *ti;
if (target->timedOut(NULL)) {
continue;
}
const char *TargetName = target->TargetName();
const char *targetipstr = target->targetipstr();
lua_newtable(L);
Expand Down

0 comments on commit 28f3b49

Please sign in to comment.