diff mbox series

[net] sctp: add the missing setting for asoc encap_port

Message ID 6bd2663c371f783d4668de217d0fbf3b0e85cca8.1621910964.git.lucien.xin@gmail.com
State New
Headers show
Series [net] sctp: add the missing setting for asoc encap_port | expand

Commit Message

Xin Long May 25, 2021, 2:49 a.m. UTC
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>
---
 net/sctp/socket.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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;
 	}