diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2007-10-04 16:24:50 +0000 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2007-10-04 16:24:50 +0000 |
commit | 830132ac9c0d270bf9dcfe85c2464e3fe8c73fb9 (patch) | |
tree | 780486eb33c8b6ff11d760260823f07cc2805822 /iptables.c | |
parent | 0463ee1f28946cc49815737daa0ced0c68f39f0b (diff) |
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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 */ |