From: Kurt Zeilenga Date: Mon, 16 Oct 2000 20:32:39 +0000 (+0000) Subject: ITS#839: getaddrinfo portability fix from Gabar Gombas X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1732 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=820965a412c60622175516d80e62269b77e402d0;p=openldap ITS#839: getaddrinfo portability fix from Gabar Gombas --- 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);