From 10afc9e59dd1e1d274062ce8d3923bd3285c006e Mon Sep 17 00:00:00 2001 From: ae Date: Mon, 12 Oct 2015 07:50:27 +0000 Subject: [PATCH] MFC r288528: Fix possible segmentation fault. PR: 203494 git-svn-id: svn://svn.freebsd.org/base/stable/10@289170 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sbin/ipfw/ipfw2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c index 587362ae6..ff8395dc7 100644 --- a/sbin/ipfw/ipfw2.c +++ b/sbin/ipfw/ipfw2.c @@ -2990,7 +2990,7 @@ ipfw_add(char *av[]) 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; -- 2.45.0