Subject: Re: fix for if_detach panic
To: None <tech-net@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-net
Date: 08/03/2004 18:11:51
In article <1091056671.253566.1023.nullmailer@yamt.dyndns.org>,
YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp> wrote:
>-=-=-=-=-=-
>
>hi,
>
>the attached diff is to fix address leaks on ioctl error,
>which causes a panic on if_detach.
>("if_detach: no domain for AF 0")
>
>- SIOCAIFADDR, SIOCSIFADDR: free an address on error.
>- SIOCSIFNETMASK, SIOCSIFDSTADDR: reject operations for an interface which
> has no AF_INET addresses.
>(partly from OpenBSD and FreeBSD.)
>
>can anyone review it? thanks.
Looks ok to me.
christos