Skip to content

Commit

Permalink
Change: Drop results_autofp on NVTs rebuild
Browse files Browse the repository at this point in the history
If the view is left from older versions of gvmd, it will be removed on
rebuild so it does not prevent replacing the nvts table.
  • Loading branch information
timopollmeier committed May 4, 2023
1 parent d173597 commit 9f34217
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/manage_sql_nvts.c
Original file line number Diff line number Diff line change
Expand Up @@ -1637,6 +1637,7 @@ update_nvts_from_vts (entity_t *get_vts_response,
}

if (rebuild) {
sql ("DROP VIEW IF EXISTS results_autofp;");
sql ("DROP VIEW vulns;");
sql ("DROP TABLE nvts, nvt_preferences, vt_refs, vt_severities;");

Expand Down

0 comments on commit 9f34217

Please sign in to comment.