Переглянути джерело

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>
Wei Yongjun 16 роки тому
батько
коміт
ff0ac74afb
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      net/sctp/output.c

+ 1 - 1
net/sctp/output.c

@@ -407,7 +407,7 @@ int sctp_packet_transmit(struct sctp_packet *packet)
 	}
 	}
 	dst = dst_clone(tp->dst);
 	dst = dst_clone(tp->dst);
 	skb_dst_set(nskb, dst);
 	skb_dst_set(nskb, dst);
-	if (dst)
+	if (!dst)
 		goto no_route;
 		goto no_route;
 
 
 	/* Build the SCTP header.  */
 	/* Build the SCTP header.  */