Skip to content

Commit

Permalink
Merge pull request #534 from jjnicola/wait-plugin
Browse files Browse the repository at this point in the history
Sleep between checks for last plugin to finish before changing to another category
  • Loading branch information
bjoernricks committed Jun 22, 2020
2 parents d87fdbe + 2653f81 commit b263298
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Memleak fixes for kb_item_get_str(). [#502](https://github.com/greenbone/openvas/pull/502)
- Fix denied hosts. [#510](https://github.com/greenbone/openvas/pull/510)
- Fix openvas-nasl. Add kb key/value for all vhosts. [#533](https://github.com/greenbone/openvas/pull/533)
- Wait for last plugin to finish before change to other category. [#534](https://github.com/greenbone/openvas/pull/534)

### Removed
- Removed "network scan" mode. This includes removal of NASL API methods "scan_phase()" and "network_targets()". Sending a "network_mode=yes" in a scanner configuration will have no effect anymore. [#493](https://github.com/greenbone/openvas/pull/493)
Expand Down
3 changes: 3 additions & 0 deletions src/attack.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,9 @@ attack_host (struct scan_globals *globals, struct in6_addr *ip, GSList *vhosts,
}
else if (plugin == NULL)
break;
else if (plugin != NULL && plugin == PLUG_RUNNING)
/* 50 miliseconds. */
usleep (50000);
pluginlaunch_wait_for_free_process (kb);
}

Expand Down

0 comments on commit b263298

Please sign in to comment.