From 820965a412c60622175516d80e62269b77e402d0 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 16 Oct 2000 20:32:39 +0000 Subject: [PATCH] ITS#839: getaddrinfo portability fix from Gabar Gombas --- servers/slapd/daemon.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 020fe4daa0..b1a2ffc26d 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -291,6 +291,10 @@ static int slap_get_listener_addresses( *sap = NULL; break; } + if (*sap != NULL) { + (*sap)->sa_family = sai->ai_family; + (*sap)->sa_len = sai->ai_addrlen; + } sap++; } while ((sai = sai->ai_next) != NULL); -- 2.39.5