Date: Fri, 21 Mar 2003 10:47:23 -0500 (EST) From: "Matthew N. Dodd" <mdodd@FreeBSD.ORG> To: src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sys/net bpf.c Message-ID: <20030321104447.C8716@sasami.jurai.net> In-Reply-To: <200303211513.h2LFDTqQ069691@repoman.freebsd.org> References: <200303211513.h2LFDTqQ069691@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 21 Mar 2003, Matthew N. Dodd wrote: > mdodd 2003/03/21 07:13:29 PST > > FreeBSD src repository > > Modified files: > sys/net bpf.c > Log: > Assignment could be NULL, check. [I've been informed that this is a little terse.] A struct pointer is assigned as a result of list iteration that could terminate without a match causing it to be NULL. A conditional test referencing it will blow up. This happened when bpf_detach() is called on an interface that was not treated to bpf_attach(). -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | winter@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | For Great Justice! | ISO8802.5 4ever | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-src" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030321104447.C8716>