patch-1.3.37 linux/net/core/firewall.c

Next file: linux/net/core/skbuff.c
Previous file: linux/kernel/sys.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.36/linux/net/core/firewall.c linux/net/core/firewall.c
@@ -100,7 +100,6 @@
 int call_fw_firewall(int pf, struct sk_buff *skb, void *phdr)
 {
 	struct firewall_ops *fw=firewall_chain[pf];
-	int result=firewall_policy[pf];
 	
 	while(fw!=NULL)
 	{
@@ -109,8 +108,7 @@
 			return rc;
 		fw=fw->next;
 	}
-	/* alan, is this right? */
-	return result;
+	return firewall_policy[pf];
 }
 
 /*
@@ -120,7 +118,6 @@
 int call_in_firewall(int pf, struct sk_buff *skb, void *phdr)
 {
 	struct firewall_ops *fw=firewall_chain[pf];
-	int result=firewall_policy[pf];
 	
 	while(fw!=NULL)
 	{
@@ -129,14 +126,12 @@
 			return rc;
 		fw=fw->next;
 	}
-	/* alan, is this right? */
-	return result;
+	return firewall_policy[pf];
 }
 
 int call_out_firewall(int pf, struct sk_buff *skb, void *phdr)
 {
 	struct firewall_ops *fw=firewall_chain[pf];
-	int result=firewall_policy[pf];
 	
 	while(fw!=NULL)
 	{
@@ -146,7 +141,7 @@
 		fw=fw->next;
 	}
 	/* alan, is this right? */
-	return result;
+	return firewall_policy[pf];
 }
 
 void fwchain_init(void)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this