diff --git a/CHANGELOG.md b/CHANGELOG.md index 76ff0036f..2c38c3465 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -70,6 +70,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Switch result filter column 'task' from task ID to name task name [#1317](https://github.com/greenbone/gvmd/pull/1317) - Correct check of get_certificate_info return [#1318](https://github.com/greenbone/gvmd/pull/1318) - Fix GMP doc text of `active` elem for notes and overrides [#1323](https://github.com/greenbone/gvmd/pull/1323) +- Allow config to sync even if NVT family is not available [#1347](https://github.com/greenbone/gvmd/pull/1347) - Move feed object in trash checks to startup [#1325](https://github.com/greenbone/gvmd/pull/1325) - Always check for 'All' when deleting selectors [#1342](https://github.com/greenbone/gvmd/pull/1342) - Do not inherit settings from deleted users [#1328](https://github.com/greenbone/gvmd/pull/1328) diff --git a/src/manage_sql_configs.c b/src/manage_sql_configs.c index e5e301724..077b489a9 100644 --- a/src/manage_sql_configs.c +++ b/src/manage_sql_configs.c @@ -1189,19 +1189,13 @@ insert_nvt_selectors (const char *quoted_name, family = nvt_family (selector->family_or_nvt); if (family == NULL) - { - g_warning ("%s: skipping NVT '%s' from import of config '%s'" - " because the NVT does not have a family", - __func__, - selector->family_or_nvt, - quoted_name); - if (allow_errors) - continue; - return -1; - } + g_debug ("%s: NVT '%s' in config '%s' does not have a family", + __func__, + selector->family_or_nvt, + quoted_name); quoted_family_or_nvt = sql_quote (selector->family_or_nvt); - quoted_family = sql_quote (family); + quoted_family = sql_quote (family ? family : ""); sql ("INSERT into nvt_selectors (name, exclude, type, family_or_nvt," " family)" " VALUES ('%s', %i, %i, '%s', '%s');",