summaryrefslogtreecommitdiffstats
path: root/net/sctp/endpointola.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-11-21 02:12:25 +0100
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-03 06:26:51 +0100
commit6a1e5f335461567f593e88b218f1c06817cbd323 (patch)
tree4cba2ea0f04c53d3f695bee61f164570a88633c9 /net/sctp/endpointola.c
parent[SCTP]: sctp_copy_one_addr() switched to net-endian. (diff)
downloadlinux-6a1e5f335461567f593e88b218f1c06817cbd323.tar.xz
linux-6a1e5f335461567f593e88b218f1c06817cbd323.zip
[SCTP]: sctp_process_init() and sctp_source() switched to net-endian.
both are done in one go since almost always we have result of the latter immediately passed to the former. Possibly non-obvious note: sctp_process_param() is endian-agnostic Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/endpointola.c')
-rw-r--r--net/sctp/endpointola.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sctp/endpointola.c b/net/sctp/endpointola.c
index 4cca7792c961..33a42e90c32f 100644
--- a/net/sctp/endpointola.c
+++ b/net/sctp/endpointola.c
@@ -346,10 +346,8 @@ static void sctp_endpoint_bh_rcv(struct sctp_endpoint *ep)
* COOKIE-ECHO chunk.
*/
if (NULL == chunk->asoc) {
- union sctp_addr tmp;
- flip_to_n(&tmp, sctp_source(chunk));
asoc = sctp_endpoint_lookup_assoc(ep,
- &tmp,
+ sctp_source(chunk),
&transport);
chunk->asoc = asoc;
chunk->transport = transport;