From: zhuyj Date: Wed, 20 Aug 2014 09:31:43 +0000 (+0800) Subject: sctp: not send SCTP_PEER_ADDR_CHANGE notifications with failed probe X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=061079ac0b9be7a578dcd09f7865c2c0d6ac894a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git sctp: not send SCTP_PEER_ADDR_CHANGE notifications with failed probe Since the transport has always been in state SCTP_UNCONFIRMED, it therefore wasn't active before and hasn't been used before, and it always has been, so it is unnecessary to bug the user with a notification. Reported-by: Deepak Khandelwal Suggested-by: Vlad Yasevich Suggested-by: Michael Tuexen Suggested-by: Daniel Borkmann Signed-off-by: Zhu Yanjun Acked-by: Vlad Yasevich Acked-by: Daniel Borkmann Signed-off-by: David S. Miller --- diff --git a/net/sctp/associola.c b/net/sctp/associola.c index 06a9ee6b2d3a..aaafb3250c6a 100644 --- a/net/sctp/associola.c +++ b/net/sctp/associola.c @@ -813,6 +813,7 @@ void sctp_assoc_control_transport(struct sctp_association *asoc, else { dst_release(transport->dst); transport->dst = NULL; + ulp_notify = false; } spc_state = SCTP_ADDR_UNREACHABLE;