From 9eb9f068114835a3a97bb947b0429fbbb5583492 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelsalam Date: Wed, 24 Jul 2024 11:32:18 +0200 Subject: [PATCH] Fix: Drop result_vt_epss view when rebuilding nvt related tables. --- src/manage_sql_nvts.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/manage_sql_nvts.c b/src/manage_sql_nvts.c index a740fea5e..d43e4b5ae 100644 --- a/src/manage_sql_nvts.c +++ b/src/manage_sql_nvts.c @@ -1979,6 +1979,7 @@ update_nvts_from_vts (element_t *get_vts_response, if (rebuild) { sql ("DROP VIEW IF EXISTS results_autofp;"); sql ("DROP VIEW vulns;"); + sql ("DROP MATERIALIZED VIEW IF EXISTS result_vt_epss;"); sql ("DROP TABLE nvts, nvt_preferences, vt_refs, vt_severities;"); sql ("ALTER TABLE vt_refs_rebuild RENAME TO vt_refs;");