]> git.sur5r.net Git - openldap/commitdiff
Replace last commit with Stig's improved version
authorKurt Zeilenga <kurt@openldap.org>
Mon, 16 Oct 2000 21:45:35 +0000 (21:45 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 16 Oct 2000 21:45:35 +0000 (21:45 +0000)
servers/slapd/daemon.c

index b1a2ffc26d679e56d39674993019f86296587cd5..5aecc3bcea864298be3ba1941d1f2dbff2adab99 100644 (file)
@@ -293,9 +293,8 @@ static int slap_get_listener_addresses(
                }
                if (*sap != NULL) {
                        (*sap)->sa_family = sai->ai_family;
-                       (*sap)->sa_len = sai->ai_addrlen;
+                       sap++;
                }
-               sap++;
        } while ((sai = sai->ai_next) != NULL);
 
        freeaddrinfo(res);