-On [20010923 11:38], Matthew N. Dodd ([EMAIL PROTECTED]) wrote:
>sys/net/if.c and bpf.c have problems with if_detach() and
>bpfdetach() when they are called with a struct ifnet that has not had
>if_attach() and bpfattach() called on it.  Null pointer reference ->
>*boom* etc.
>
>This patch fixes the test already present in bpfdetach() and adds a test
>to if_detach().

Patch looks sane to me.
Basically it is a combination of asserting and defensive programming,
which never hurts.

-- 
Jeroen Ruigrok van der Werven/Asmodai asmodai@[wxs.nl|freebsd.org|xmach.org]
Documentation nutter/C-rated Coder, finger [EMAIL PROTECTED]
http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/
At the End of the Rainbow, with Gold in our hands...


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to