Skip to content

Commit

Permalink
Fix: Fix result detection for imported reports
Browse files Browse the repository at this point in the history
When importing reports, the "detected_at" report host details generated
from result detection details now use the VT ID of the result.
This makes it so the result detection now works correctly in the
imported reports.
  • Loading branch information
timopollmeier committed Apr 28, 2023
1 parent 39fabc0 commit ea1ba5f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -18095,8 +18095,7 @@ gmp_xml_handle_result ()
detail->ip = g_strdup (result->host);
detail->name = g_strdup ("detected_at");
detail->source_desc = g_strdup ("create_report_import");
detail->source_name = g_strdup (
detection->source_oid); // verify when detected_at || detected_by
detail->source_name = g_strdup (result->nvt_oid);
detail->source_type = g_strdup ("create_report_import");
detail->value = g_strdup (detection->location);
array_add (create_report_data->details, detail);
Expand Down

0 comments on commit ea1ba5f

Please sign in to comment.