forked from Minki/linux
sctp: xmit sctp packet always return no route error
Commit 'net: skb->dst accessors'(adf30907d6
)
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>
This commit is contained in:
parent
d51e9b0d94
commit
ff0ac74afb
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user