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
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>
  • Loading branch information
Xin Long authored and David S. Miller committed May 25, 2021
1 parent 8c42a49 commit 297739b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/sctp/socket.c
Original file line number Diff line number Diff line change
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 297739b

Please sign in to comment.