]> git.baikalelectronics.ru Git - kernel.git/commitdiff
sctp: add the missing setting for asoc encap_port
authorXin Long <lucien.xin@gmail.com>
Tue, 25 May 2021 02:49:24 +0000 (22:49 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 May 2021 22:17:26 +0000 (15:17 -0700)
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>
net/sctp/socket.c

index 40f9f6c4a0a1d4592e5eb3e6b28911fde7131f59..a79d193ff872012a913bccad583a77a0d824d65a 100644 (file)
@@ -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;
        }