From 88743226e75d9290ee2a8f22ffc8ad4e6f3b9f0d Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Mon, 5 Aug 2019 16:48:13 +0200 Subject: [PATCH 1/2] Fix getting nvt_revision in buffer_insert --- src/manage_sql.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/manage_sql.c b/src/manage_sql.c index 9fe73a28d..e86202ac0 100644 --- a/src/manage_sql.c +++ b/src/manage_sql.c @@ -54264,10 +54264,10 @@ buffer_insert (GString *buffer, task_t task, const char* host, quoted_qod_type = g_strdup (""); } - nvt_revision = g_strdup_printf ("SELECT iso_time (modification_time)" - " FROM nvts" - " WHERE uuid = '%s';", - nvt); + nvt_revision = sql_string ("SELECT iso_time (modification_time)" + " FROM nvts" + " WHERE uuid = '%s';", + nvt); } else { From 477571dc6db7b50b9950b9501ef71cfa09265fbf Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Mon, 5 Aug 2019 17:01:53 +0200 Subject: [PATCH 2/2] Amend CHANGELOG.md entry for buffer_insert fix --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5fca5477c..90793c9b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Fixed - Fix iCalendar recurrence and timezone handling [#653](https://github.com/greenbone/gvmd/pull/653) - Fix issues with some scheduled tasks by using iCalendar more instead of old period fields [#655](https://github.com/greenbone/gvmd/pull/655) -- Fix an issue in getting the reports from GMP scanners [#658](https://github.com/greenbone/gvmd/pull/658) +- Fix an issue in getting the reports from GMP scanners [#658](https://github.com/greenbone/gvmd/pull/658) [#666](https://github.com/greenbone/gvmd/pull/666) ### Removed