summaryrefslogtreecommitdiffstats
path: root/iptables.c
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2007-10-04 16:24:50 +0000
committer/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2007-10-04 16:24:50 +0000
commitbce702101149d31162e1a2851a268f07824f3d6b (patch)
tree780486eb33c8b6ff11d760260823f07cc2805822 /iptables.c
parent39e512ce0d96670eded22483a94bc4dcb34b4ae0 (diff)
[PATCH 03/14] Delete empty ->final_check() functions
Deletes empty ->final_check() functions, and makes ip[6]tables checks for NULL on these. Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
Diffstat (limited to 'iptables.c')
-rw-r--r--iptables.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/iptables.c b/iptables.c
index 900e8fc..d7a45ee 100644
--- a/iptables.c
+++ b/iptables.c
@@ -1905,9 +1905,10 @@ int do_command(int argc, char *argv[], char **table, iptc_handle_t *handle)
}
for (matchp = matches; matchp; matchp = matchp->next)
- matchp->match->final_check(matchp->match->mflags);
+ if (matchp->match->final_check != NULL)
+ matchp->match->final_check(matchp->match->mflags);
- if (target)
+ if (target != NULL && target->final_check != NULL)
target->final_check(target->tflags);
/* Fix me: must put inverse options checking here --MN */