Skip to content

Commit

Permalink
sctp: add the missing setting for asoc encap_port
Browse files Browse the repository at this point in the history
commit 297739b upstream.

This patch is to add the missing setting back for asoc encap_port.

Fixes: 8dba296 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
lxin authored and gregkh committed Jun 3, 2021
1 parent eb21f9f commit eb9bc1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/sctp/socket.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit eb9bc1d

Please sign in to comment.