Subject: CVS commit: src/sys/netinet
To: None <source-changes@NetBSD.org>
From: YAMAMOTO Takashi <yamt@netbsd.org>
List: source-changes
Date: 08/08/2004 09:52:41
Module Name:	src
Committed By:	yamt
Date:		Sun Aug  8 09:52:41 UTC 2004

Modified Files:
	src/sys/netinet: in.c

Log Message:
in_control: fix address leaks on error, which causes a panic
("no domain for AF 0") on if_detach.
- 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.
reviewed by Christos Zoulas on tech-net@.


To generate a diff of this commit:
cvs rdiff -r1.99 -r1.100 src/sys/netinet/in.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.