sctp: use ep and asoc auth_enable properly
authorXin Long <lucien.xin@gmail.com>
Mon, 19 Aug 2019 14:02:47 +0000 (22:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Aug 2019 01:27:29 +0000 (18:27 -0700)
commit219f9ea4d3b797f0337dece61e4e8255840e47d0
tree173b5974828f1bb5d505436a12ae1833acb8ce22
parentdf2c71ffdfae58961981d7cbcccea93688fc4e96
sctp: use ep and asoc auth_enable properly

sctp has per endpoint auth flag and per asoc auth flag, and
the asoc one should be checked when coming to asoc and the
endpoint one should be checked when coming to endpoint.

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