diff options
Diffstat (limited to 'net/sctp/input.c')
-rw-r--r-- | net/sctp/input.c | 6 |
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, | |||
914 | sctp_init_chunk_t *init; | 914 | sctp_init_chunk_t *init; |
915 | struct sctp_transport *transport; | 915 | struct sctp_transport *transport; |
916 | struct sctp_af *af; | 916 | struct sctp_af *af; |
917 | union sctp_addr tmp2; | ||
918 | 917 | ||
919 | ch = (sctp_chunkhdr_t *) skb->data; | 918 | ch = (sctp_chunkhdr_t *) skb->data; |
920 | 919 | ||
@@ -961,10 +960,9 @@ static struct sctp_association *__sctp_rcv_init_lookup(struct sk_buff *skb, | |||
961 | if (!af) | 960 | if (!af) |
962 | continue; | 961 | continue; |
963 | 962 | ||
964 | af->from_addr_param(paddr, params.addr, ntohs(sh->source), 0); | 963 | af->from_addr_param(paddr, params.addr, sh->source, 0); |
965 | flip_to_n(&tmp2, paddr); | ||
966 | 964 | ||
967 | asoc = __sctp_lookup_association(laddr, &tmp2, &transport); | 965 | asoc = __sctp_lookup_association(laddr, paddr, &transport); |
968 | if (asoc) | 966 | if (asoc) |
969 | return asoc; | 967 | return asoc; |
970 | } | 968 | } |