Skip to content

Commit 1c62634

Browse files
committed
Fix: Convert integer port to string using g_strdup_printf
1 parent 98968c3 commit 1c62634

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/manage_sql.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57186,7 +57186,7 @@ add_openvasd_result_to_report (openvasd_result_t res, gpointer *results_aux)
5718657186
test_id = res->oid;
5718757187
host = res->ip_address;
5718857188
hostname = res->hostname;
57189-
port = g_strdup (res->port);
57189+
port = g_strdup_printf ("%d", res->port);
5719057190

5719157191
/* Add report host if it doesn't exist. */
5719257192
manage_report_host_add (rep_aux->report, host, 0, 0);

0 commit comments

Comments
 (0)