debug2("bind port %d: %.100s", port, strerror(errno));
close(sock);
if (ai->ai_next)
if (errno == EADDRNOTAVAIL && ai->ai_next)
continue;
for (n = 0; n < num_socks; n++) {