Fix possible segmentation fault.
PR: 203494 MFC after: 1 week
This commit is contained in:
parent
15395998e9
commit
56afe65ca9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=288528
@ -3625,7 +3625,7 @@ compile_rule(char *av[], uint32_t *rbuf, int *rbufsize, struct tidx *tstate)
|
|||||||
action->opcode = O_NAT;
|
action->opcode = O_NAT;
|
||||||
action->len = F_INSN_SIZE(ipfw_insn_nat);
|
action->len = F_INSN_SIZE(ipfw_insn_nat);
|
||||||
CHECK_ACTLEN;
|
CHECK_ACTLEN;
|
||||||
if (_substrcmp(*av, "global") == 0) {
|
if (*av != NULL && _substrcmp(*av, "global") == 0) {
|
||||||
action->arg1 = 0;
|
action->arg1 = 0;
|
||||||
av++;
|
av++;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user