@@ -57153,7 +57153,8 @@ convert_openvasd_type_to_osp_type (const char *openvasd_type)
57153
57153
return g_strdup ("Alarm");
57154
57154
else if (g_strcmp0 (openvasd_type, "error") == 0)
57155
57155
return g_strdup ("Error Message");
57156
- else if (g_strcmp0 (openvasd_type, "log") == 0)
57156
+ else if (g_strcmp0 (openvasd_type, "log") == 0
57157
+ || g_strcmp0 (openvasd_type, "host_detail") == 0)
57157
57158
return g_strdup ("Log Message");
57158
57159
57159
57160
return g_strdup (openvasd_type);
@@ -57185,18 +57186,11 @@ add_openvasd_result_to_report (openvasd_result_t res, gpointer *results_aux)
57185
57186
test_id = res->oid;
57186
57187
host = res->ip_address;
57187
57188
hostname = res->hostname;
57188
-
57189
- if (res && res->port == 0 && !strcmp (type, "host_detail") &&
57190
- res->detail_value && *res->detail_value)
57191
- port = g_strdup ("general/Host_Details");
57192
- else if (res->port > 0)
57193
- port = g_strdup_printf ("%d/%s", res->port, res->protocol);
57194
- else
57195
- port = g_strdup_printf ("general/%s", res->protocol);
57189
+ port = g_strdup (res->port);
57196
57190
57197
57191
/* Add report host if it doesn't exist. */
57198
57192
manage_report_host_add (rep_aux->report, host, 0, 0);
57199
- if (!strcmp (type , "host_detail "))
57193
+ if (!strcmp (port , "general/Host_Details "))
57200
57194
{
57201
57195
gchar *hash_value = NULL;
57202
57196
if (!check_host_detail_exists (rep_aux->report, host,
0 commit comments