]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make callers to in6_selectsrc() and in6_pcbladdr() pass in memory
authorbz <bz@FreeBSD.org>
Tue, 23 Jun 2009 22:08:55 +0000 (22:08 +0000)
committerbz <bz@FreeBSD.org>
Tue, 23 Jun 2009 22:08:55 +0000 (22:08 +0000)
commita8839212d25048d806814db571facbc74524f2ff
tree3a58d4c5cc129f8a6f67da930359091b3204e2b3
parent6438d166b7094064ec21ed778af3438294b17ed2
Make callers to in6_selectsrc() and in6_pcbladdr() pass in memory
to save the selected source address rather than returning an
unreferenced copy to a pointer that might long be gone by the
time we use the pointer for anything meaningful.

Asked for by: rwatson
Reviewed by: rwatson
sys/netinet/tcp_usrreq.c
sys/netinet6/icmp6.c
sys/netinet6/in6_pcb.c
sys/netinet6/in6_pcb.h
sys/netinet6/in6_src.c
sys/netinet6/ip6_var.h
sys/netinet6/nd6_nbr.c
sys/netinet6/raw_ip6.c
sys/netinet6/udp6_usrreq.c