All pastes #2120923 Raw Edit

Stuff

public text v1 · immutable
#2120923 ·published 2012-02-23 00:23 UTC
rendered paste body
--- mod-cband-0.9.6.1/src/mod_cband.c	2006-01-21 20:23:27.000000000 -0500
+++ mod-cband-0.9.6.1-cov//src/mod_cband.c	2012-02-22 19:23:04.162307962 -0500
@@ -1278,7 +1278,7 @@
     p.bitlen = 32;
     p.ref_count = 0;
     p.family = AF_INET;
-    p.add.sin.s_addr = inet_addr(r->connection->remote_ip);
+    p.add.sin.s_addr = inet_addr(r->connection->client_ip);
 		      
     node = patricia_search_best(config->tree, &p);
 				    
@@ -1287,7 +1287,7 @@
 					            
         if (leaf) {
 #ifdef DEBUG
-            fprintf(stderr,"%s leaf %s\n",r->connection->remote_ip,leaf);
+            fprintf(stderr,"%s leaf %s\n",r->connection->client_ip,leaf);
             fflush(stderr);
 #endif
 	    return atoi(leaf);
@@ -1307,10 +1307,10 @@
     if (entry == NULL)
 	return -1;
     
-    if (c->remote_ip != NULL)
-	addr = inet_addr(c->remote_ip);    
+    if (c->client_ip != NULL)
+	addr = inet_addr(c->client_ip);    
     else
-	addr = c->remote_addr->sa.sin.sin_addr.s_addr;
+	addr = c->client_addr->sa.sin.sin_addr.s_addr;
 	
     time_now = apr_time_now();     
     hosts = config->remote_hosts.hosts;