diff options
author | Jim Jagielski <jim@apache.org> | 2008-02-14 14:37:18 +0100 |
---|---|---|
committer | Jim Jagielski <jim@apache.org> | 2008-02-14 14:37:18 +0100 |
commit | b8f5af8cbe0f5d83937f036daa9a0c79444e4643 (patch) | |
tree | 8362ea93c2648c8634e1ec87191302d79cf713c3 /modules/proxy/proxy_util.c | |
parent | This is really really out of date... try to refresh it; (diff) | |
download | apache2-b8f5af8cbe0f5d83937f036daa9a0c79444e4643.tar.xz apache2-b8f5af8cbe0f5d83937f036daa9a0c79444e4643.zip |
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
Diffstat (limited to 'modules/proxy/proxy_util.c')
-rw-r--r-- | modules/proxy/proxy_util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index 0a27b18c27..607ca98169 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -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)); } |