diff options
author | Wei Yongjun <yjwei@cn.fujitsu.com> | 2009-06-28 22:49:37 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-29 19:41:53 -0700 |
commit | ff0ac74afb5b9916641723a78796d4ee7937c2ea (patch) | |
tree | 8056226e0c4aaf07249de626b42d32c2a188cf8a /net/sctp | |
parent | d51e9b0d94336db56a13fdc65bb30751e3ea33b7 (diff) |
sctp: xmit sctp packet always return no route error
Commit 'net: skb->dst accessors'(adf30907d63893e4208dfe3f5c88ae12bc2f25d5)
broken the sctp protocol stack, the sctp packet can never be sent out after
Eric Dumazet's patch, which have typo in the sctp code.
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Vlad Yasevich <vladisalv.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
-rw-r--r-- | net/sctp/output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/output.c b/net/sctp/output.c index b7641144451..b94c2119056 100644 --- a/net/sctp/output.c +++ b/net/sctp/output.c @@ -407,7 +407,7 @@ int sctp_packet_transmit(struct sctp_packet *packet) } dst = dst_clone(tp->dst); skb_dst_set(nskb, dst); - if (dst) + if (!dst) goto no_route; /* Build the SCTP header. */ |