From owner-cvs-all Sun Mar 11 14:18: 5 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3D10A37B718; Sun, 11 Mar 2001 14:18:01 -0800 (PST) (envelope-from iedowse@FreeBSD.org) Received: (from iedowse@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2BMI1r77458; Sun, 11 Mar 2001 14:18:01 -0800 (PST) (envelope-from iedowse) Message-Id: <200103112218.f2BMI1r77458@freefall.freebsd.org> From: Ian Dowse Date: Sun, 11 Mar 2001 14:18:01 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/netinet ip_output.c X-FreeBSD-CVS-Branch: RELENG_4 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG iedowse 2001/03/11 14:18:01 PST Modified files: (Branch: RELENG_4) sys/netinet ip_output.c Log: MFC: 1.122->1.223 Set up `ia' properly for dummynet packets to avoid dereferencing an unitialised pointer. This change includes some over-defensive checks not present in the patch applied to -current; we set `ia' to NULL at the start of ip_output(), check that the dummynet route is non-NULL, and that `ia' is non-NULL before it is dereferenced. This are just safety measures which can be removed when the per-ifaddr stats code has had a bit more testing time in -current. Approved by: jkh Revision Changes Path 1.99.2.13 +9 -5 src/sys/netinet/ip_output.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message