]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
There is a consensus that ifaddr.ifa_addr should never be NULL,
authoryar <yar@FreeBSD.org>
Thu, 29 Jun 2006 19:22:05 +0000 (19:22 +0000)
committeryar <yar@FreeBSD.org>
Thu, 29 Jun 2006 19:22:05 +0000 (19:22 +0000)
commitba19b1ecd4d6f2950416c0596e5007ae8ffb5360
tree3d6a9cdea9fbb33471c0beed7b40c5ae89e5a37c
parentfb752eb168e0c0461ca9c98b0c8452c4d96ec4a7
There is a consensus that ifaddr.ifa_addr should never be NULL,
except in places dealing with ifaddr creation or destruction; and
in such special places incomplete ifaddrs should never be linked
to system-wide data structures.  Therefore we can eliminate all the
superfluous checks for "ifa->ifa_addr != NULL" and get ready
to the system crashing honestly instead of masking possible bugs.

Suggested by: glebius, jhb, ru
sys/net/if.c
sys/net/if_atmsubr.c
sys/net/if_stf.c
sys/net/if_tun.c
sys/netinet/if_ether.c
sys/netinet/ip_divert.c
sys/netinet/ip_fw2.c
sys/netinet6/in6.c
sys/netinet6/in6_var.h
sys/nfsclient/bootp_subr.c
sys/nfsclient/nfs_diskless.c