mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Make NewTargets::push() return 1 if the target is already in the queue to avoid returning 0 (error code).
This commit is contained in:
parent
72455a613c
commit
d2773a09a7
1 changed files with 4 additions and 0 deletions
|
|
@ -605,6 +605,10 @@ unsigned long NewTargets::push (const char *target) {
|
|||
if (o.debugging > 2)
|
||||
log_write(LOG_PLAIN, "New Targets: target %s is already in the queue.\n",
|
||||
tg.c_str());
|
||||
/* Return 1 when the target is already in the queue,
|
||||
* this will prevent returning 0 when the target queue
|
||||
* is empty since no target was added. */
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue