Commit ff0ac74a authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller

sctp: xmit sctp packet always return no route error

Commit 'net: skb->dst accessors'(adf30907)
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: default avatarWei Yongjun <yjwei@cn.fujitsu.com>
Acked-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Acked-by: default avatarVlad Yasevich <vladisalv.yasevich@hp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d51e9b0d
......@@ -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. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment