Date: Mon, 12 Oct 2015 07:50:27 +0000 (UTC) From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r289170 - stable/10/sbin/ipfw Message-ID: <201510120750.t9C7oRWW090806@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ae Date: Mon Oct 12 07:50:27 2015 New Revision: 289170 URL: https://svnweb.freebsd.org/changeset/base/289170 Log: MFC r288528: Fix possible segmentation fault. PR: 203494 Modified: stable/10/sbin/ipfw/ipfw2.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sbin/ipfw/ipfw2.c ============================================================================== --- stable/10/sbin/ipfw/ipfw2.c Mon Oct 12 07:49:07 2015 (r289169) +++ stable/10/sbin/ipfw/ipfw2.c Mon Oct 12 07:50:27 2015 (r289170) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510120750.t9C7oRWW090806>