diff options
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 */ |