Skip to content

Commit

Permalink
get_info nvt: Don't add solution elements to tags.
Browse files Browse the repository at this point in the history
Since the solution and solution_type are now in a element
of its own, we do not need them in the tags element of the nvt
for the get_info response.

This change should be merged after GSA parses the solution and
solution_type properly from the new elemnt for the get_info command.
  • Loading branch information
janowagner committed Dec 1, 2019
1 parent 8b40af5 commit 5d484d9
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -7756,25 +7756,6 @@ get_nvti_xml (iterator_t *nvts, int details, int pref_count,
xml_string_append (nvt_tags, "impact=%s",
nvt_iterator_impact (nvts));
}
if (nvt_iterator_solution (nvts) && nvt_iterator_solution (nvts)[0])
{
if (nvt_tags->str)
xml_string_append (nvt_tags, "|solution=%s",
nvt_iterator_solution (nvts));
else
xml_string_append (nvt_tags, "solution=%s",
nvt_iterator_solution (nvts));
}
if (nvt_iterator_solution_type (nvts)
&& nvt_iterator_solution_type (nvts)[0])
{
if (nvt_tags->str)
xml_string_append (nvt_tags, "|solution_type=%s",
nvt_iterator_solution_type (nvts));
else
xml_string_append (nvt_tags, "solution_type=%s",
nvt_iterator_solution_type (nvts));
}
if (nvt_iterator_detection (nvts) && nvt_iterator_detection (nvts)[0])
{
if (nvt_tags->str)
Expand Down

0 comments on commit 5d484d9

Please sign in to comment.