diff options
author | Xin Long <lucien.xin@gmail.com> | 2018-03-01 23:05:16 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-04 13:00:57 -0500 |
commit | 8e87c6eb18f9d7427054f28a284d495c174d9970 (patch) | |
tree | 0b863b60f33ae9b005658173feee30c7f9528eb3 /net/sctp/protocol.c | |
parent | d42cb06e5b542cabea88c9074b2abf90d43757f7 (diff) | |
download | linux-8e87c6eb18f9d7427054f28a284d495c174d9970.tar.bz2 |
sctp: remove the unnecessary transport looking up from sctp_sendmsg
Now sctp_assoc_lookup_paddr can only be called only if daddr has
been set. But if daddr has been set, sctp_endpoint_lookup_assoc
would be done, where it could already have the transport.
So this unnecessary transport looking up should be removed, but
only reset transport as NULL when SCTP_ADDR_OVER is not set for
UDP type socket.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/protocol.c')
0 files changed, 0 insertions, 0 deletions