]> granicus.if.org Git - apache/commitdiff
Fix a problem with the last commit... I missed one of the hashing changes
authorJeff Trawick <trawick@apache.org>
Sat, 16 Dec 2000 11:36:16 +0000 (11:36 +0000)
committerJeff Trawick <trawick@apache.org>
Sat, 16 Dec 2000 11:36:16 +0000 (11:36 +0000)
so some of the code had an unnecessary IPv4 assumption.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87367 13f79535-47bb-0310-9956-ffa450edef68

server/vhost.c

index 94c236641e6f3e3d2bfe093910543f198da186ec..914a7367a4bc87e3a64b8c4f8fe5b190e96c1a0a 100644 (file)
@@ -614,7 +614,7 @@ void ap_fini_vhost_config(apr_pool_t *p, server_rec *main_s)
                ic = find_ipaddr(sar->host_addr);
 
                if (!ic) {
-                   unsigned bucket = hash_inaddr(sar->host_addr->sa.sin.sin_addr.s_addr);
+                   unsigned bucket = hash_addr(sar->host_addr);
 
                    ic = new_ipaddr_chain(p, s, sar);
                    ic->next = *iphash_table_tail[bucket];