diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2009-06-23 22:08:55 +0000 |
---|---|---|
committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2009-06-23 22:08:55 +0000 |
commit | 88d166bf19596597de5a421b6e0eab81882c8dc2 (patch) | |
tree | 3a58d4c5cc129f8a6f67da930359091b3204e2b3 /sys/netinet6/in6_pcb.h | |
parent | 9e9be269064ed95f90402eaa7c4e93a0d4225197 (diff) | |
download | src-88d166bf19596597de5a421b6e0eab81882c8dc2.tar.gz src-88d166bf19596597de5a421b6e0eab81882c8dc2.zip |
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
Notes
Notes:
svn path=/head/; revision=194777
Diffstat (limited to 'sys/netinet6/in6_pcb.h')
-rw-r--r-- | sys/netinet6/in6_pcb.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet6/in6_pcb.h b/sys/netinet6/in6_pcb.h index b2cc724a11ca..c54a8cf3759f 100644 --- a/sys/netinet6/in6_pcb.h +++ b/sys/netinet6/in6_pcb.h @@ -74,8 +74,7 @@ void in6_losing __P((struct inpcb *)); int in6_pcbbind __P((struct inpcb *, struct sockaddr *, struct ucred *)); int in6_pcbconnect __P((struct inpcb *, struct sockaddr *, struct ucred *)); void in6_pcbdisconnect __P((struct inpcb *)); -int in6_pcbladdr __P((struct inpcb *, struct sockaddr *, - struct in6_addr **)); +int in6_pcbladdr(struct inpcb *, struct sockaddr *, struct in6_addr *); struct inpcb * in6_pcblookup_local __P((struct inpcbinfo *, struct in6_addr *, u_short, int, |