From nobody Tue Feb 22 23:55:55 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 024B719CEE16; Tue, 22 Feb 2022 23:55:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K3GJq6bQ0z4ST7; Tue, 22 Feb 2022 23:55:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645574155; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=AigJ9iqmaHcFZAoRtKy3S3Ym/Rc6tqUb3E89aC/OxKk=; b=uIbR1VjBKeAvw+47DsIJwqF1u4H7vjI6G5fNpHdcUSzxmnDq6nuQVCFWndMayW07FqBgdk Bq5HLPsbgfLCObxvXv7vG4x6V7WFR2Wy6Yh3FppJLNE0dTV2Ev/rPu+lm3elte5mdkL+8/ +ypgikFXHsGWeuqS+8N7cfgv1Wjjy+MQ4bodiJwnHSe6RPzM6JlS1+obufaE+d9ftsMnf6 tpFKk7rSg8n8cqXfQR/onseJecdBbmfajkDD0ptvXAftmyBCsXQaCkIZJ+guw1qRQYKAHt TCj3/CXGX0wiOivB9TIv/a8JxBYvSY3IqwGHhR/9BSBGybsL65LGVrJKMpevuw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C2A7F5BC8; Tue, 22 Feb 2022 23:55:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21MNttmQ051450; Tue, 22 Feb 2022 23:55:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21MNttco051449; Tue, 22 Feb 2022 23:55:55 GMT (envelope-from git) Date: Tue, 22 Feb 2022 23:55:55 GMT Message-Id: <202202222355.21MNttco051449@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Tuexen Subject: git: a27063a57491 - stable/13 - sctp: cleanup, on functional change intended. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: a27063a57491fd1e49d5a61f960dd1edef1a25ee Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645574155; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=AigJ9iqmaHcFZAoRtKy3S3Ym/Rc6tqUb3E89aC/OxKk=; b=K9DL2wy7EbwHG1U0gG3a4UXlv3KRbvXrUDLK9GPqOqvZQZ0rZMSEUiuBHghiG4d7pkBX8n uTb0WX7xb3iFk/JYYW0+/4bGWgu5ZUwaLUHjHrHOH2IJPVVTdu3owERaK9cZBGpQyBPUoZ sLazdtsHmMCgFzDjae7EklsaQpU0oQKQdqGJ+SneiT/HIGoHKkXWsQzB90TWwqiOe8c31K 6QA728SjnW97vKjwSbej9yT9VJOR0gPxPJp5bfqUVdiUs+62yDCbFvT+niH7QxMR/2edhP gCQ+4Mp8xrzbrVzOLO/6GzczjoBcOYGMRA60nHZsgr+QWOrRGuQhJdZExkoM4A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645574155; a=rsa-sha256; cv=none; b=Z4NV4nMG+F99Ozo9Zw52Mj7dl3MkR1X4zQvL8XERrhyXXnEljou3vx5e8fgpNOKJGaBttF hcsUCDljL+nXkcBT+RXHdgRz8fqUMj5R6mKAyUjikWWaxOSFWNXGHCAcwncLrk53h8bKve iorPV/jMr70grG0d68390fUlu6Usrn3ofJ4NOzwmmdTee68N/NwVJlGINbeOhIDpa9xSJM hEpud+d53Pke27T/TD6lgTiEcIDZLLCCS7N15WPCX6+kQC3ZhThlmYbqVhLxjZBi8Dxcna SEgkUkk8wZRgxkmNr83fM0uZGnbzVyT0wayxQ4RSMnxozuW21FAWwpi3AG/j3g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=a27063a57491fd1e49d5a61f960dd1edef1a25ee commit a27063a57491fd1e49d5a61f960dd1edef1a25ee Author: Michael Tuexen AuthorDate: 2021-12-27 17:28:44 +0000 Commit: Michael Tuexen CommitDate: 2022-02-22 23:54:24 +0000 sctp: cleanup, on functional change intended. (cherry picked from commit 34ae6a1a442881681a9c63e93a189b9191db50ed) --- sys/netinet/sctputil.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c index 8322603438c3..6c58ad47f274 100644 --- a/sys/netinet/sctputil.c +++ b/sys/netinet/sctputil.c @@ -2895,13 +2895,12 @@ sctp_timer_stop(int t_type, struct sctp_inpcb *inp, struct sctp_tcb *stcb, uint32_t sctp_calculate_len(struct mbuf *m) { - uint32_t tlen = 0; struct mbuf *at; + uint32_t tlen; - at = m; - while (at) { + tlen = 0; + for (at = m; at != NULL; at = SCTP_BUF_NEXT(at)) { tlen += SCTP_BUF_LEN(at); - at = SCTP_BUF_NEXT(at); } return (tlen); }