Skip to content

Commit

Permalink
Add: Added to fork_cve_scan_handler() cleanup so it matches fork_osp_…
Browse files Browse the repository at this point in the history
…scan_handler() (#1998)

(/issues/1979)

(cherry picked from commit 33ae8f7)

Co-authored-by: Kevin Hester <kevin.hester@aegis-ew.com>
  • Loading branch information
mergify[bot] and khesterproton authored May 31, 2023
1 parent 4099b5e commit eadb1a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -3089,9 +3089,12 @@ fork_cve_scan_handler (task_t task, target_t target)
set_report_scan_run_status (global_current_report,
TASK_STATUS_INTERRUPTED);
global_current_report = (report_t) 0;
current_scanner_task = 0;
return -9;
default:
/* Parent, successfully forked. */
global_current_report = 0;
current_scanner_task = 0;
g_debug ("%s: %i forked %i", __func__, getpid (), pid);
return 0;
}
Expand Down

0 comments on commit eadb1a3

Please sign in to comment.