]> git.sur5r.net Git - openldap/commitdiff
ITS#839: getaddrinfo portability fix from Gabar Gombas
authorKurt Zeilenga <kurt@openldap.org>
Mon, 16 Oct 2000 20:32:39 +0000 (20:32 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 16 Oct 2000 20:32:39 +0000 (20:32 +0000)
servers/slapd/daemon.c

index 020fe4daa000f22c4ac1cf5dbe17990bde7a7739..b1a2ffc26d679e56d39674993019f86296587cd5 100644 (file)
@@ -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);