diff options
author | tuexen <tuexen@FreeBSD.org> | 2010-09-05 20:13:07 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2010-09-05 20:13:07 +0000 |
commit | 908a61906a3959d7159393310a134e5e7ccaf193 (patch) | |
tree | 6da56548b04b564ea6db054076b52256e27ae83e /sys/kern | |
parent | df58c57d8a012bf9e3ba7473400ccef5a5749b8a (diff) | |
download | FreeBSD-src-908a61906a3959d7159393310a134e5e7ccaf193.zip FreeBSD-src-908a61906a3959d7159393310a134e5e7ccaf193.tar.gz |
Implement correct handling of address parameter and
sendinfo for SCTP send calls.
MFC after: 4 weeks.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/uipc_syscalls.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index 3165dab..06869b2 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -2381,7 +2381,6 @@ sctp_generic_sendmsg (td, uap) struct sctp_sndrcvinfo sinfo, *u_sinfo = NULL; struct socket *so; struct file *fp = NULL; - int use_rcvinfo = 1; int error = 0, len; struct sockaddr *to = NULL; #ifdef KTRACE @@ -2434,7 +2433,7 @@ sctp_generic_sendmsg (td, uap) CURVNET_SET(so->so_vnet); error = sctp_lower_sosend(so, to, &auio, (struct mbuf *)NULL, (struct mbuf *)NULL, - uap->flags, use_rcvinfo, u_sinfo, td); + uap->flags, u_sinfo, td); CURVNET_RESTORE(); if (error) { if (auio.uio_resid != len && (error == ERESTART || @@ -2485,7 +2484,6 @@ sctp_generic_sendmsg_iov(td, uap) struct sctp_sndrcvinfo sinfo, *u_sinfo = NULL; struct socket *so; struct file *fp = NULL; - int use_rcvinfo = 1; int error=0, len, i; struct sockaddr *to = NULL; #ifdef KTRACE @@ -2552,7 +2550,7 @@ sctp_generic_sendmsg_iov(td, uap) CURVNET_SET(so->so_vnet); error = sctp_lower_sosend(so, to, &auio, (struct mbuf *)NULL, (struct mbuf *)NULL, - uap->flags, use_rcvinfo, u_sinfo, td); + uap->flags, u_sinfo, td); CURVNET_RESTORE(); if (error) { if (auio.uio_resid != len && (error == ERESTART || |