hipl-core team mailing list archive
-
hipl-core team
-
Mailing list archive
-
Message #00138
[Branch ~hipl-core/hipl/trunk] Rev 4924: Remove pointless temporary in read_rule_file().
------------------------------------------------------------
revno: 4924
committer: Christof Mroz <christof.mroz@xxxxxxxxxxxxxx>
branch nick: trunk
timestamp: Thu 2010-09-02 21:33:25 +0200
message:
Remove pointless temporary in read_rule_file().
modified:
firewall/rule_management.c
--
lp:hipl
https://code.launchpad.net/~hipl-core/hipl/trunk
Your team HIPL core team is subscribed to branch lp:hipl.
To unsubscribe from this branch go to https://code.launchpad.net/~hipl-core/hipl/trunk/+edit-subscription
=== modified file 'firewall/rule_management.c'
--- firewall/rule_management.c 2010-09-02 19:16:32 +0000
+++ firewall/rule_management.c 2010-09-02 19:33:25 +0000
@@ -889,7 +889,6 @@
char *p = NULL;
char *original_line = NULL;
struct rule *rule = NULL;
- int state = 0;
HIP_DEBUG("line read: %s\n", line);
@@ -913,10 +912,6 @@
rule = parse_rule(line);
if (rule) {
- if (rule->state) {
- state = 1;
- }
-
if (rule->hook == NF_IP6_LOCAL_IN) {
input = append_to_list(input, rule);
print_rule((struct rule *) input->data);