diff options
Diffstat (limited to 'ip6tables.c')
-rw-r--r-- | ip6tables.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ip6tables.c b/ip6tables.c index 3a54c86f..026a4954 100644 --- a/ip6tables.c +++ b/ip6tables.c @@ -1840,9 +1840,10 @@ int do_command6(int argc, char *argv[], char **table, ip6tc_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 */ |