diff --git a/CHANGELOG.md b/CHANGELOG.md index 81c37b9a5..aa22dda7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -115,6 +115,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). * Remove BID from GMP documentation [#1673](https://github.com/greenbone/gvmd/pull/1673) ### Fixed +- Fixed the lack of the severities in the display of the applications [#1666](https://github.com/greenbone/gvmd/pull/1666) [20.8.4]: https://github.com/greenbone/gvmd/compare/v20.8.3...gvmd-20.08 diff --git a/src/gmp.c b/src/gmp.c index 9a5b6789a..8a8f1e5cd 100644 --- a/src/gmp.c +++ b/src/gmp.c @@ -18372,7 +18372,7 @@ gmp_xml_handle_result () detail->ip = g_strdup (result->host); detail->name = g_strconcat ("detected_by@", detection->location, NULL); detail->source_desc = g_strdup ("create_report_import"); - detail->source_name = g_strdup (detection->source_oid); + detail->source_name = g_strdup (result->nvt_oid); detail->source_type = g_strdup ("create_report_import"); detail->value = g_strdup (detection->source_oid); array_add (create_report_data->details, detail); diff --git a/src/manage_sql.c b/src/manage_sql.c index 8abf0133f..2fe6888bd 100644 --- a/src/manage_sql.c +++ b/src/manage_sql.c @@ -19601,6 +19601,7 @@ result_detection_reference (result_t result, report_t report, " OR port LIKE '%%%s%%');", report, quoted_host, *oid, quoted_location, quoted_location); + if (*ref == NULL) goto detect_cleanup;