Let me amend my statement: there's actually a break statement at the end of the for loop which sets up server sockets, so it will only run for one iteration, so what I said isn't actually true. What I believe is true is:
1. The for loop is pointless since there aren't any "continue" statements. 2. The code will bind to the first socket address returned by getaddrinfo(NULL, "krb5-kprop", ...) and listen there only. I don't know if there are sufficient guarantees about what getaddrinfo will return in this instance. 3. If we can assume that getaddrinfo will return the IPv6 wildcard address first, then the result will be to accept IPv4 and IPv6 connections on some operating systems, but not all. In particular, I believe Windows (which this code doesn't run on) and all three *BSDs (which it does run on) require you to turn off the IPV6_V6ONLY socket option in order to get v4-mapped connections to a v6 socket. Greg Hudson MIT Kerberos Consortium -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org