Skip to content

Commit

Permalink
Fix: openvas-nasl has issues executing subsequent .nasl scripts (#1658)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnicola authored Jun 10, 2024
1 parent 1c135d5 commit 4bab5f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions misc/plugutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,12 @@ plug_get_host_fqdn (struct script_infos *args)
return NULL;
vhosts = vhosts->next;
}

// Allow to return to the main process if parent process is openvas-nasl.
// So, the main process can do e.g. a kb clean up
if (args->standalone)
return NULL;

_exit (0);
}

Expand Down

0 comments on commit 4bab5f3

Please sign in to comment.