From nobody Thu Mar 02 16:25:48 2023 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 4PSGgJ3lf5z3w0j1; Thu, 2 Mar 2023 16:25:48 +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 4PSGgJ2FqTz4Vfp; Thu, 2 Mar 2023 16:25:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677774348; 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=pUrQ/h6eN3dHV3d5jWKc6Mu83DfUeQHwykR8+QdQEOY=; b=SIY40QtvHvhcrZjDpLJXxNaeL4zTtoDyQlefMUvwKEcXSDJbpDeRr4xVXnCwuFxFA54+T8 6Q8jFd/ScfAWtpFGYcEpwTgVpSFtCnVQ4wQgtBD44MTIZ4sGtJ+zzYpVp7E7hwNz30SHhU hKjn6NCxkIRVwPyKtOq/NzbAm+WscfzjnPlcJ2YB2gXUGYbAsUYem9vk7JX1lENdrj4/71 cRBZv8qR0UX/yL60tMwn8fqCOVbPJAdJnJJZ9aIkyDNXV+rEOZO8o9oPFBSwGFPl41QF7g 0sIwR7I+OibpiaKBeWhZF+P3XKFVFlwuHwTsez/+aIZ2IeX2c+c/3fJ8LKTpeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677774348; 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=pUrQ/h6eN3dHV3d5jWKc6Mu83DfUeQHwykR8+QdQEOY=; b=k2bu3eCAembvUbVz7tYj1rQtIg4wuRmYF3PpuaU0uwtWSKC7h5+kgwPTvIHAj/wBkuA1ZH pVJhz6iE8OeeKjJ2vq6grVE0cSCzv6C2FzoKtPG1V3OIUKPbtwDaQYmudVd3LmkCR0RHnz VClnbmZ9X1kSeG/i783WxlS/zYCmhv/uH6pVgDrzqtmTsIWfufcuwJEPYroXBjoGLh7+Qz X0CaazFoL/XguUCPZLTJmNg6sGaBkXvRtf9xAYsVKLlCD7X29EYU/hzQdwBbipHwpZ+iOU txZy4CUq8L294eFZdMce8aVLRUbA0JBgtdQrJodHNLAcaM2GLFpntkaKxJ0PPQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677774348; a=rsa-sha256; cv=none; b=jhyyWdQfYJNgFk3ls8C+w/ooHgGc7aG0AqMNj+iY4cMPSqgvWHuSOIfl6oIoSaX0MeHW4W tIwF7cPXjYDGqI5+2HQsy1irX7pvG2cqT5sTv6EWPRJL/3Ou6845Nw3GWBlV0QzvlEZC5b IL1mpXBYTaRI1iUn9DSD1UJ1EDWcXGSzOPIgT4eYIlqSfpemnIFV1LE+BMHhubqeSnF8Ff TbqxCPPB+Qq6a5H9jCUJJQ88TrLHzQtHdkMWNDUhQ/QDu/s5vXCEmpnJQgnGK5cZiJorZk mRmAlgnysBGrKr3X+IvER+Ggko7UyDNzRiQ4jcZv0ONCFbAYttTd+KZJ6YoH/A== 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 4PSGgJ1DN1zMfn; Thu, 2 Mar 2023 16:25:48 +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 322GPmat053122; Thu, 2 Mar 2023 16:25:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 322GPmYC053113; Thu, 2 Mar 2023 16:25:48 GMT (envelope-from git) Date: Thu, 2 Mar 2023 16:25:48 GMT Message-Id: <202303021625.322GPmYC053113@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kristof Provost Subject: git: 7e2de012f38a - stable/12 - pfsync: ensure 'error' is always initialised 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: kp X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 7e2de012f38a7cb36357efb8cb00174bab4b479e Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=7e2de012f38a7cb36357efb8cb00174bab4b479e commit 7e2de012f38a7cb36357efb8cb00174bab4b479e Author: Kristof Provost AuthorDate: 2023-02-16 08:16:35 +0000 Commit: Kristof Provost CommitDate: 2023-03-02 11:15:28 +0000 pfsync: ensure 'error' is always initialised Reported by: Herbert J. Skuhra MFC after: 2 weeks (cherry picked from commit f52ca3dfd5520332e8cb8d08eda1b92aca2a159c) --- sys/netpfil/pf/if_pfsync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netpfil/pf/if_pfsync.c b/sys/netpfil/pf/if_pfsync.c index e3e3fa3ad6a2..8d90f76a3faa 100644 --- a/sys/netpfil/pf/if_pfsync.c +++ b/sys/netpfil/pf/if_pfsync.c @@ -2328,7 +2328,7 @@ static void pfsync_tx(struct pfsync_softc *sc, struct mbuf *m) { struct ip *ip; - int error, af; + int af, error = 0; ip = mtod(m, struct ip *); MPASS(ip->ip_v == IPVERSION || ip->ip_v == (IPV6_VERSION >> 4));