summaryrefslogtreecommitdiffstats
path: root/net/sctp/protocol.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-11-21 02:24:21 +0100
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-03 06:27:06 +0100
commit7dcdbd9579c944bb833f95a7f276d01f49161734 (patch)
tree4cfbd59e73cec266fd0589da183f02d37fb53b8b /net/sctp/protocol.c
parent[SCTP]: ->a_h is gone now. (diff)
downloadlinux-7dcdbd9579c944bb833f95a7f276d01f49161734.tar.xz
linux-7dcdbd9579c944bb833f95a7f276d01f49161734.zip
[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/protocol.c')
-rw-r--r--net/sctp/protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
index 807c97da33a5..c6297744a4ed 100644
--- a/net/sctp/protocol.c
+++ b/net/sctp/protocol.c
@@ -272,7 +272,7 @@ static void sctp_v4_from_skb(union sctp_addr *addr, struct sk_buff *skb,
static void sctp_v4_from_sk(union sctp_addr *addr, struct sock *sk)
{
addr->v4.sin_family = AF_INET;
- addr->v4.sin_port = inet_sk(sk)->num;
+ addr->v4.sin_port = 0;
addr->v4.sin_addr.s_addr = inet_sk(sk)->rcv_saddr;
}