Date: Thu, 06 Aug 2026 08:36:15 +0000 From: Michael Tuexen <tuexen@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Bjoern A. Zeeb <bz@FreeBSD.org> Subject: git: 74f750004990 - stable/14 - sctp: initialize inp to avoid uninitialized use Message-ID: <6a74477f.3dc04.e209441@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/14 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=74f75000499001ea7e8e8261b56f2b0538e2125c commit 74f75000499001ea7e8e8261b56f2b0538e2125c Author: Bjoern A. Zeeb <bz@FreeBSD.org> AuthorDate: 2026-04-18 13:25:18 +0000 Commit: Michael Tuexen <tuexen@FreeBSD.org> CommitDate: 2026-08-06 05:59:01 +0000 sctp: initialize inp to avoid uninitialized use If we take an early goto out_unlocked inp is uninitialized and then may be used in SCTP_LTRACE_ERR_RET(). Initialize inp to NULL to avoid warnings. Found with: gcc15 tinderbox build Reviewed by: tuexen, pouria Differential Revision: https://reviews.freebsd.org/D56503 (cherry picked from commit 4cdbcc2b6a2e551529f7133665ef406869b48bf7) --- sys/netinet/sctp_output.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/netinet/sctp_output.c b/sys/netinet/sctp_output.c index 2a3c0248be60..ef589d266134 100644 --- a/sys/netinet/sctp_output.c +++ b/sys/netinet/sctp_output.c @@ -12601,6 +12601,7 @@ sctp_lower_sosend(struct socket *so, error = 0; net = NULL; stcb = NULL; + inp = NULL; if ((uio == NULL) && (top == NULL)) { error = EINVAL;home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a74477f.3dc04.e209441>
