Skip to content

Commit

Permalink
sctp: xmit sctp packet always return no route error
Browse files Browse the repository at this point in the history
Commit 'net: skb->dst accessors'(adf3090)
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>
  • Loading branch information
Wei Yongjun authored and David S. Miller committed Jun 30, 2009
1 parent d51e9b0 commit ff0ac74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sctp/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit ff0ac74

Please sign in to comment.