Skip to content

Commit

Permalink
Merge branch 'gvmd-20.08' into user-del-rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
timopollmeier authored Dec 1, 2020
2 parents ae69420 + 2e183b5 commit 53c37ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Clean up hosts strings before using them [#1352](https://github.com/greenbone/gvmd/pull/1352)
- Improve SCP username and destination path handling [#1350](https://github.com/greenbone/gvmd/pull/1350)
- Fix response memory handling in handle_osp_scan [#1364](https://github.com/greenbone/gvmd/pull/1364)
- Allow config to sync even if NVT family is not available [#1366](https://github.com/greenbone/gvmd/pull/1366)
- Delete report format dirs last when deleting a user [#1368](https://github.com/greenbone/gvmd/pull/1368)

### Removed
Expand Down
16 changes: 5 additions & 11 deletions src/manage_sql_configs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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');",
Expand Down

0 comments on commit 53c37ce

Please sign in to comment.