diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2023-02-28 11:29:21 +0100 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2023-03-01 12:52:21 +0100 |
commit | f38936e62cfcf8f0add97c4bea3b5662f3e07a19 (patch) | |
tree | fc306b3e525bb0babd3cd36f8b0e5d37bd2a9dd7 /src/ipcpd | |
parent | 59703c95fb529386574a334c9cff7cd5d4f16255 (diff) | |
download | ouroboros-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 <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd')
-rw-r--r-- | src/ipcpd/udp/main.c | 4 |
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) |