From 65e5e28549d43928b1bfb986bbe1fb1442a2faee Mon Sep 17 00:00:00 2001 From: hiura2023 Date: Thu, 8 Jan 2026 16:50:47 +0900 Subject: [PATCH] Fix: Correct the wrong data type passed to the log output --- src/Cedar/Virtual.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Cedar/Virtual.c b/src/Cedar/Virtual.c index f5d105cf..6cfed301 100644 --- a/src/Cedar/Virtual.c +++ b/src/Cedar/Virtual.c @@ -2815,6 +2815,7 @@ void NativeNatThread(THREAD *thread, void *param) if (a != NULL) { char macstr[64]; + IP dhcp_ip; // Acquisition success Debug("NnGetNextInterface Ok: %s\n", a->DeviceName); @@ -2842,9 +2843,10 @@ void NativeNatThread(THREAD *thread, void *param) Debug("NnMainLoop Start.\n"); MacToStr(macstr, sizeof(macstr), a->Ipc->MacAddress); + UINTToIP(&dhcp_ip, a->CurrentDhcpOptionList.ServerAddress); NLog(t->v, "LH_KERNEL_MODE_START", a->DeviceName, &a->Ipc->ClientIPAddress, &a->Ipc->SubnetMask, &a->Ipc->DefaultGateway, &a->Ipc->BroadcastAddress, - macstr, &a->CurrentDhcpOptionList.ServerAddress, &a->DnsServerIP); + macstr, &dhcp_ip, &a->DnsServerIP); NnMainLoop(t, a); Debug("NnMainLoop End.\n");