diff options
author | Xin Long <lucien.xin@gmail.com> | 2021-05-24 22:49:24 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-05-25 15:17:26 -0700 |
commit | 297739bd73f6e49d80bac4bfd27f3598b798c0d4 (patch) | |
tree | 4b5191d9109bb532a9272a16b4edf45968c8894e /net/sctp | |
parent | 8c42a49738f16af0061f9ae5c2f5a955f268d9e3 (diff) |
sctp: add the missing setting for asoc encap_port
This patch is to add the missing setting back for asoc encap_port.
Fixes: 8dba29603b5c ("sctp: add SCTP_REMOTE_UDP_ENCAPS_PORT sockopt")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
-rw-r--r-- | net/sctp/socket.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c index 40f9f6c4a0a1..a79d193ff872 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c @@ -4473,6 +4473,7 @@ static int sctp_setsockopt_encap_port(struct sock *sk, transports) t->encap_port = encap_port; + asoc->encap_port = encap_port; return 0; } |