[hipl-commit] [trunk] Rev 4562: firewall: fix more shadowing in the port cache.

  • From: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Tue, 18 May 2010 15:54:18 +0300

Committer: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
Date: 18/05/2010 at 15:54:18
Revision: 4562
Revision-id: mircea.gherzan@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  firewall: fix more shadowing in the port cache.

Modified:
  M  firewall/cache_port.c

=== modified file 'firewall/cache_port.c'
--- firewall/cache_port.c       2010-04-15 23:36:41 +0000
+++ firewall/cache_port.c       2010-05-18 12:53:55 +0000
@@ -150,7 +150,7 @@
     firewall_port_cache_hl_t *found_entry = NULL;
     char key[FIREWALL_PORT_CACHE_KEY_LENGTH];
     char protocol[10], proto_for_bind[10];
-    int bind = FIREWALL_PORT_CACHE_IPV4_TRAFFIC; //3 - default to ipv4, 
non-LSI traffic
+    int bindto = FIREWALL_PORT_CACHE_IPV4_TRAFFIC; //3 - default to ipv4, 
non-LSI traffic
 
     memset(protocol, 0, sizeof(protocol));
     memset(proto_for_bind, 0, sizeof(proto_for_bind));
@@ -187,8 +187,8 @@
     }
 
     if (!found_entry) {
-        bind        = hip_get_proto_info(ntohs(port), proto_for_bind);
-        hip_port_cache_add_new_entry(key, bind);
+        bindto      = hip_get_proto_info(ntohs(port), proto_for_bind);
+        hip_port_cache_add_new_entry(key, bindto);
         found_entry = (firewall_port_cache_hl_t *) hip_ht_find(
             firewall_port_cache_db,
             (void *) key);

Other related posts:

  • » [hipl-commit] [trunk] Rev 4562: firewall: fix more shadowing in the port cache. - Mircea Gherzan