X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/c18c124eaa464aaaa5549e99e5a70fc9cbb50944..3e170ce000f1506b7b5d2c5c7faec85ceabb573d:/bsd/netinet/ip_fw2_compat.c diff --git a/bsd/netinet/ip_fw2_compat.c b/bsd/netinet/ip_fw2_compat.c index 1022e03f1..c4f1bf576 100644 --- a/bsd/netinet/ip_fw2_compat.c +++ b/bsd/netinet/ip_fw2_compat.c @@ -1981,7 +1981,7 @@ ipfw_convert_to_cmds_32(struct ip_fw *curr_rule, struct ip_fw_compat_32 *compat_ ipfw_insn *action, *cmd, *src, *dst; ipfw_insn *have_state = NULL; /* track check-state or keep-state */ - if (!compat_rule || !curr_rule || !(curr_rule->cmd)) { + if (!compat_rule || !curr_rule) { return; } @@ -2525,7 +2525,7 @@ ipfw_convert_to_cmds_64(struct ip_fw *curr_rule, struct ip_fw_compat_64 *compat_ ipfw_insn *action, *cmd, *src, *dst; ipfw_insn *have_state = NULL; /* track check-state or keep-state */ - if (!compat_rule || !curr_rule || !(curr_rule->cmd)) { + if (!compat_rule || !curr_rule) { return; }