diff options
| author | Andrey V. Elsukov <ae@FreeBSD.org> | 2015-10-03 03:12:57 +0000 |
|---|---|---|
| committer | Andrey V. Elsukov <ae@FreeBSD.org> | 2015-10-03 03:12:57 +0000 |
| commit | 56afe65ca9a07a839f4bcd3865acf9ebe7660010 (patch) | |
| tree | dec849e5d0873bfbc8a1c61f7c7406c27b712f35 /sbin | |
| parent | 15395998e9e5aff92a0421bb811c6ec06363d919 (diff) | |
Notes
Diffstat (limited to 'sbin')
| -rw-r--r-- | sbin/ipfw/ipfw2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c index 8ad8f90cc317..bc8af9f833a6 100644 --- a/sbin/ipfw/ipfw2.c +++ b/sbin/ipfw/ipfw2.c @@ -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; |
