]> git.sur5r.net Git - openldap/commitdiff
ITS#2132, give up at first bind failure
authorHoward Chu <hyc@openldap.org>
Wed, 9 Oct 2002 20:45:13 +0000 (20:45 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 9 Oct 2002 20:45:13 +0000 (20:45 +0000)
servers/slapd/daemon.c

index f8fc27aef4e15295fe5f4779c03941d86e6d7e49..99adbce057dabfb2670467a017e211ee42416231 100644 (file)
@@ -783,8 +783,8 @@ static int slap_open_listener(
                       (long) l.sl_sd, err, sock_errstr(err) );
 #endif
                        tcp_close( l.sl_sd );
-                       sal++;
-                       continue;
+                       slap_free_listener_addresses(psal);
+                       return -1;
                }
 
        switch ( (*sal)->sa_family ) {