Content-Type: multipart/mixed; boundary="===============0765344263890288711==" MIME-Version: 1.0 From: Peter Krystad To: mptcp at lists.01.org Subject: [MPTCP] [PATCH v2 06/10] Fix return value if no DSS option is created. Date: Thu, 25 Jul 2019 18:58:23 -0700 Message-ID: <20190726015827.10637-7-peter.krystad@linux.intel.com> In-Reply-To: 20190726015827.10637-1-peter.krystad@linux.intel.com X-Status: X-Keywords: X-UID: 1562 --===============0765344263890288711== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Strictly speaking mptcp_established_options_dss() should return false if no DSS option is created. squashto: Write MPTCP DSS headers to outgoing data packets Signed-off-by: Peter Krystad --- net/mptcp/options.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/mptcp/options.c b/net/mptcp/options.c index fbd53b9fa28f..848d761b2ac7 100644 --- a/net/mptcp/options.c +++ b/net/mptcp/options.c @@ -400,6 +400,9 @@ static bool mptcp_established_options_dss(struct sock *= sk, struct sk_buff *skb, WARN(1, "MPTCP: Ack dropped"); } = + if (!dss_size) + return false; + *size =3D ALIGN(dss_size, 4); return true; } -- = 2.17.2 --===============0765344263890288711==--