From: Xin Long Date: Tue, 25 May 2021 02:49:24 +0000 (-0400) Subject: sctp: add the missing setting for asoc encap_port X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=297739bd73f6e49d80bac4bfd27f3598b798c0d4;p=linux.git 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 Signed-off-by: David S. Miller --- diff --git a/net/sctp/socket.c b/net/sctp/socket.c index 40f9f6c4a0a1d..a79d193ff8720 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; }