From 1896164f06db4de340d144e3b2fd43e68bba5455 Mon Sep 17 00:00:00 2001 From: Gui Jianfeng Date: Wed, 4 Jun 2008 12:38:07 -0700 Subject: [PATCH] --- yaml --- r: 97672 b: refs/heads/master c: 159c6bea37c54dfae44409467e0f17600722d541 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/net/sctp/protocol.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 28c17ccf2c45..1a2d96785b16 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4141ddc02a92a6e3e5793601554c6033e83c25b9 +refs/heads/master: 159c6bea37c54dfae44409467e0f17600722d541 diff --git a/trunk/net/sctp/protocol.c b/trunk/net/sctp/protocol.c index 13ee7fa92e07..56bdaf7fc425 100644 --- a/trunk/net/sctp/protocol.c +++ b/trunk/net/sctp/protocol.c @@ -470,11 +470,11 @@ static struct dst_entry *sctp_v4_get_dst(struct sctp_association *asoc, /* Walk through the bind address list and look for a bind * address that matches the source address of the returned dst. */ + sctp_v4_dst_saddr(&dst_saddr, dst, htons(bp->port)); rcu_read_lock(); list_for_each_entry_rcu(laddr, &bp->address_list, list) { if (!laddr->valid || (laddr->state != SCTP_ADDR_SRC)) continue; - sctp_v4_dst_saddr(&dst_saddr, dst, htons(bp->port)); if (sctp_v4_cmp_addr(&dst_saddr, &laddr->a)) goto out_unlock; }