From 9843ee858f19b8a2e730fb6d4755b6739c2d2448 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 12 May 2026 09:15:46 +0200 Subject: [PATCH] modules: use sockaddr_storage for socket address sockaddr_in only works for ipv4, for ipv6, the address will be truncated and then cause a stack overread in inet_ntop. --- src/modules/module-protocol-simple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-protocol-simple.c b/src/modules/module-protocol-simple.c index 7333863cf..de693f84f 100644 --- a/src/modules/module-protocol-simple.c +++ b/src/modules/module-protocol-simple.c @@ -576,7 +576,7 @@ on_connect(void *data, int fd, uint32_t mask) { struct server *server = data; struct impl *impl = server->impl; - struct sockaddr_in addr; + struct sockaddr_storage addr; socklen_t addrlen; int client_fd, val; struct client *client = NULL;