Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.  */