diff options
author | Xin Long <lucien.xin@gmail.com> | 2019-07-09 00:57:05 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-08 20:16:24 -0700 |
commit | 1c13475368b697d4fc9c0630b5d4ee51d5ca0790 (patch) | |
tree | 9773074ff44077d62718f381a975164056208814 /net/sctp/socket.c | |
parent | a96701fb3534c45bd6fe5e6f6d3a91e3acc19b59 (diff) | |
download | lwn-1c13475368b697d4fc9c0630b5d4ee51d5ca0790.tar.gz lwn-1c13475368b697d4fc9c0630b5d4ee51d5ca0790.zip |
sctp: remove prsctp_enable from asoc
Like reconf_enable, prsctp_enable should also be removed from asoc,
as asoc->peer.prsctp_capable has taken its job.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/socket.c')
-rw-r--r-- | net/sctp/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c index d8bcc4711d4a..54ceece59ea5 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c @@ -7325,7 +7325,7 @@ static int sctp_getsockopt_pr_supported(struct sock *sk, int len, goto out; } - params.assoc_value = asoc ? asoc->prsctp_enable + params.assoc_value = asoc ? asoc->peer.prsctp_capable : sctp_sk(sk)->ep->prsctp_enable; if (put_user(len, optlen)) |