From f38936e62cfcf8f0add97c4bea3b5662f3e07a19 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Tue, 28 Feb 2023 11:29:21 +0100 Subject: ipcpd: Fix address conversion in ipcpd-udp Bug introduced in 269f25d3. The wrong pointer was passed to inet_ntop. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/udp/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ipcpd/udp/main.c') diff --git a/src/ipcpd/udp/main.c b/src/ipcpd/udp/main.c index 1a7725c1..c47f6484 100644 --- a/src/ipcpd/udp/main.c +++ b/src/ipcpd/udp/main.c @@ -592,9 +592,9 @@ static void * ipcp_udp_packet_writer(void * o) } static const char * inet4_ntop(const void * addr, - char * buf) + char * buf) { - return inet_ntop(AF_INET, &addr, buf, INET_ADDRSTRLEN); + return inet_ntop(AF_INET, addr, buf, INET_ADDRSTRLEN); } static int ipcp_udp_bootstrap(const struct ipcp_config * conf) -- cgit v1.2.3