summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/udp6_usrreq.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2008-07-08 18:41:36 +0000
committerbz <bz@FreeBSD.org>2008-07-08 18:41:36 +0000
commit13896f2e515ce1d974657ebcd1f50dad4c106a06 (patch)
treecc4ffd912f153cf70830eb1ad609788e2d3190c8 /sys/netinet6/udp6_usrreq.c
parent2d2c0669861c1461f6afa4e816ec9902ac23f402 (diff)
downloadFreeBSD-src-13896f2e515ce1d974657ebcd1f50dad4c106a06.zip
FreeBSD-src-13896f2e515ce1d974657ebcd1f50dad4c106a06.tar.gz
Change the parameters to in6_selectsrc():
- pass in the inp instead of both in6p_moptions and laddr. - pass in cred for upcoming prison checks. Reviewed by: rwatson
Diffstat (limited to 'sys/netinet6/udp6_usrreq.c')
-rw-r--r--sys/netinet6/udp6_usrreq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/udp6_usrreq.c b/sys/netinet6/udp6_usrreq.c
index 867e13b..03f5ee2 100644
--- a/sys/netinet6/udp6_usrreq.c
+++ b/sys/netinet6/udp6_usrreq.c
@@ -580,8 +580,8 @@ udp6_output(struct inpcb *inp, struct mbuf *m, struct sockaddr *addr6,
}
if (!IN6_IS_ADDR_V4MAPPED(faddr)) {
- laddr = in6_selectsrc(sin6, optp, inp->in6p_moptions,
- NULL, &inp->in6p_laddr, &oifp, &error);
+ laddr = in6_selectsrc(sin6, optp, inp, NULL,
+ td->td_ucred, &oifp, &error);
if (oifp && scope_ambiguous &&
(error = in6_setscope(&sin6->sin6_addr,
oifp, NULL))) {
OpenPOWER on IntegriCloud