implementation in mod_perl test suite which calls access checking too early.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1742135 13f79535-47bb-0310-9956-
ffa450edef68
int hostname_lookups;
int ignored_str_is_ip;
- if (r->useragent_addr == conn->client_addr) {
+ /* Guard here when examining the host before the read_request hook
+ * has populated an r->useragent_addr
+ */
+ if (!r->useragent_addr || (r->useragent_addr == conn->client_addr)) {
return ap_get_remote_host(conn, r->per_dir_config, type, str_is_ip);
}