sctp: return true only for pathmtu update in sctp_transport_pl_toobig
authorXin Long <lucien.xin@gmail.com>
Thu, 28 Oct 2021 09:36:04 +0000 (05:36 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Oct 2021 11:21:23 +0000 (12:21 +0100)
commit75cf662c64dd8543f56c329c69eba18141c8fd9f
tree03cce6f1a8f05eaba99b0d9114770e9c251e8616
parentcc4665ca646c96181a7c00198aa72c59e0c576e8
sctp: return true only for pathmtu update in sctp_transport_pl_toobig

sctp_transport_pl_toobig() supposes to return true only if there's
pathmtu update, so that in sctp_icmp_frag_needed() it would call
sctp_assoc_sync_pmtu() and sctp_retransmit(). This patch is to fix
these return places in sctp_transport_pl_toobig().

Fixes: 836964083177 ("sctp: do state transition when receiving an icmp TOOBIG packet")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/transport.c