mirror of
https://github.com/apache/httpd.git
synced 2025-08-20 16:09:55 +00:00
Note why we aren't bothering to check that we have
a valid octet here. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@627740 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -677,6 +677,9 @@ static int proxy_match_ipaddr(struct dirconn_entry *This, request_rec *r)
|
||||
|
||||
if (4 == sscanf(host, "%d.%d.%d.%d", &ip_addr[0], &ip_addr[1], &ip_addr[2], &ip_addr[3])) {
|
||||
for (addr.s_addr = 0, i = 0; i < 4; ++i) {
|
||||
/* ap_proxy_is_ipaddr() already confirmed that we have
|
||||
* a valid octet in ip_addr[i]
|
||||
*/
|
||||
addr.s_addr |= htonl(ip_addr[i] << (24 - 8 * i));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user