Skip to content

Commit

Permalink
Merge pull request #312 from kroosec/host-stop-10
Browse files Browse the repository at this point in the history
Don't send HOST_END when scan was stopped by Manager.
  • Loading branch information
jjnicola authored Apr 18, 2019
2 parents 2da1044 + a9f2139 commit 48102f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hosts.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ host_rm (struct host *h)

while (forward (h, g_soc) > 0)
;
ntp_timestamp_host_scan_ends (g_soc, h->host_kb, h->ip);
if (!global_scan_stop)
ntp_timestamp_host_scan_ends (g_soc, h->host_kb, h->ip);
if (h->next != NULL)
h->next->prev = h->prev;

Expand Down

0 comments on commit 48102f7

Please sign in to comment.