]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
sctp: adjust some codes in a better order in sctp_sendmsg
authorXin Long <lucien.xin@gmail.com>
Thu, 1 Mar 2018 15:05:18 +0000 (23:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Mar 2018 18:00:57 +0000 (13:00 -0500)
commit0a3920d28b5490e6c90110156135dbc12c7fc413
tree7d239d32bbbc7dc99f06dd50f72ee67124536a08
parent007b7e18be74a49b61f89664966ac1477e1c9608
sctp: adjust some codes in a better order in sctp_sendmsg

sctp_sendmsg_new_asoc and SCTP_ADDR_OVER check is only necessary
when daddr is set, so move them up to if (daddr) statement.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c