| 423 | } |
| 424 | |
| 425 | static ipaddr_chain *find_default_server(apr_port_t port) |
| 426 | { |
| 427 | server_addr_rec *sar; |
| 428 | ipaddr_chain *trav = NULL; |
| 429 | ipaddr_chain *wild_match = NULL; |
| 430 | |
| 431 | for (trav = default_list; trav; trav = trav->next) { |
| 432 | sar = trav->sar; |
| 433 | if (sar->host_port == port) { |
| 434 | /* match! */ |
| 435 | return trav; |
| 436 | } |
| 437 | if (wild_match == NULL && sar->host_port == 0) { |
| 438 | /* don't break, continue looking for an exact match */ |
| 439 | wild_match = trav; |
| 440 | } |
| 441 | } |
| 442 | return wild_match; |
| 443 | } |
| 444 | |
| 445 | #if APR_HAVE_IPV6 |
| 446 | #define IS_IN6_ANYADDR(ad) ((ad)->family == APR_INET6 \ |
no outgoing calls
no test coverage detected