summaryrefslogtreecommitdiff
path: root/src/ipcpd
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2023-02-28 11:29:21 +0100
committerSander Vrijders <[email protected]>2023-03-01 12:52:21 +0100
commitf38936e62cfcf8f0add97c4bea3b5662f3e07a19 (patch)
treefc306b3e525bb0babd3cd36f8b0e5d37bd2a9dd7 /src/ipcpd
parent59703c95fb529386574a334c9cff7cd5d4f16255 (diff)
downloadouroboros-f38936e62cfcf8f0add97c4bea3b5662f3e07a19.tar.gz
ouroboros-f38936e62cfcf8f0add97c4bea3b5662f3e07a19.zip
ipcpd: Fix address conversion in ipcpd-udp
Bug introduced in 269f25d3. The wrong pointer was passed to inet_ntop. Signed-off-by: Dimitri Staessens <[email protected]> Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/ipcpd')
-rw-r--r--src/ipcpd/udp/main.c4
1 files changed, 2 insertions, 2 deletions
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)