summaryrefslogtreecommitdiff
path: root/net/sctp/input.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-11-20 17:11:13 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-02 21:26:48 -0800
commitdd86d136f9feb72c52a5b07707affe80edbc8dda (patch)
tree3ca8c38af8d87d76d2ad3fa239a7d9984f327bec /net/sctp/input.c
parent5ab7b859ab58e3479a5a66e383ecd6bc447f6c1d (diff)
[SCTP]: Switch ->from_addr_param() to net-endian.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/input.c')
-rw-r--r--net/sctp/input.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/sctp/input.c b/net/sctp/input.c
index 3b4a552c9f18..2d660f8d94fd 100644
--- a/net/sctp/input.c
+++ b/net/sctp/input.c
@@ -914,7 +914,6 @@ static struct sctp_association *__sctp_rcv_init_lookup(struct sk_buff *skb,
sctp_init_chunk_t *init;
struct sctp_transport *transport;
struct sctp_af *af;
- union sctp_addr tmp2;
ch = (sctp_chunkhdr_t *) skb->data;
@@ -961,10 +960,9 @@ static struct sctp_association *__sctp_rcv_init_lookup(struct sk_buff *skb,
if (!af)
continue;
- af->from_addr_param(paddr, params.addr, ntohs(sh->source), 0);
- flip_to_n(&tmp2, paddr);
+ af->from_addr_param(paddr, params.addr, sh->source, 0);
- asoc = __sctp_lookup_association(laddr, &tmp2, &transport);
+ asoc = __sctp_lookup_association(laddr, paddr, &transport);
if (asoc)
return asoc;
}