git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101828
13f79535-47bb-0310-9956-
ffa450edef68
int type, int *str_is_ip)
{
int hostname_lookups;
+ int ignored_str_is_ip;
- if (str_is_ip) { /* if caller wants to know */
- *str_is_ip = 0;
+ if (!str_is_ip) { /* caller doesn't want to know */
+ str_is_ip = &ignored_str_is_ip;
}
+ *str_is_ip = 0;
/* If we haven't checked the host name, and we want to */
if (dir_config) {
return NULL;
}
else {
- if (str_is_ip) { /* if caller wants to know */
- *str_is_ip = 1;
- }
-
+ *str_is_ip = 1;
return conn->remote_ip;
}
}