mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
Fix possible segmentation fault.
PR: 203494 MFC after: 1 week
This commit is contained in:
parent
15395998e9
commit
56afe65ca9
1 changed files with 1 additions and 1 deletions
|
|
@ -3625,7 +3625,7 @@ compile_rule(char *av[], uint32_t *rbuf, int *rbufsize, struct tidx *tstate)
|
|||
action->opcode = O_NAT;
|
||||
action->len = F_INSN_SIZE(ipfw_insn_nat);
|
||||
CHECK_ACTLEN;
|
||||
if (_substrcmp(*av, "global") == 0) {
|
||||
if (*av != NULL && _substrcmp(*av, "global") == 0) {
|
||||
action->arg1 = 0;
|
||||
av++;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue