diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-11-21 04:24:21 +0300 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 08:27:06 +0300 |
commit | 7dcdbd9579c944bb833f95a7f276d01f49161734 (patch) | |
tree | 4cfbd59e73cec266fd0589da183f02d37fb53b8b /net/sctp/ipv6.c | |
parent | 516b20ee2d4df76e7f76332e161a25c70e8f7bea (diff) | |
download | linux-7dcdbd9579c944bb833f95a7f276d01f49161734.tar.xz |
[SCTP]: Don't bother setting sin_port in ->from_sk().
... the only caller will overwrite immediately
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/ipv6.c')
-rw-r--r-- | net/sctp/ipv6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c index e6bb08767b83..8e2b1e4ec66e 100644 --- a/net/sctp/ipv6.c +++ b/net/sctp/ipv6.c @@ -371,7 +371,7 @@ static void sctp_v6_from_skb(union sctp_addr *addr,struct sk_buff *skb, static void sctp_v6_from_sk(union sctp_addr *addr, struct sock *sk) { addr->v6.sin6_family = AF_INET6; - addr->v6.sin6_port = inet_sk(sk)->num; + addr->v6.sin6_port = 0; addr->v6.sin6_addr = inet6_sk(sk)->rcv_saddr; } |