mirror of
https://github.com/nmap/nmap.git
synced 2026-08-28 04:25:15 +00:00
Corrected an output line that Ron left in from a patch I gave him.
The script's filename cannot be acessed when a thread's target times out because we do not have access to the thread's environment when it is yielded. All we can do is print out which target timed out. This output can unfortunately be printed out many times for each thread (it is currently difficult to track).
This commit is contained in:
parent
1c08d02689
commit
38394e9f24
1 changed files with 4 additions and 1 deletions
|
|
@ -437,7 +437,10 @@ int process_mainloop(lua_State *L) {
|
|||
current = *(running_scripts.begin());
|
||||
|
||||
if (current.rr.host->timedOut(&now)) {
|
||||
printf("thread (%p) timed out\n", (void *) current.thread);
|
||||
if (o.verbose >= 2) {
|
||||
log_write(LOG_STDOUT, "%s: target %s timed out.\n", SCRIPT_ENGINE,
|
||||
current.rr.host->targetipstr());
|
||||
}
|
||||
SCRIPT_ENGINE_TRY(process_finalize(L, current.registry_idx));
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue