From nobody Thu Sep 14 15:00:28 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 4RmgVP13Gcz4sZx1; Thu, 14 Sep 2023 15:00:29 +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 4RmgVP0Cz1z4VvY; Thu, 14 Sep 2023 15:00:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694703629; 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=TDhsN36bHaSlBzwbTSQGGGJDNhLKH7pXSQ3yMifCWlw=; b=dPbc1k21JBzNMyfKIf/mQrnJGV8JjHfho19Gs2HyXe2RiBlXzOWzgE0LcW/KNH0fbIL4f5 CycE9mWkZ0yH677i8LLIP1EQgpTiVwzI3ygWtWsI9nj6QxocXQxH5Q5pXnSkBOAoAsrTGw wp/xQZ+HnTr1ddGGLpzt1hlNPofCZOhlKGP3j9yRrh9pLM8FL3eNYS59qngF4pmmH0iuVq yLeehMOIfCab2msg4gtJxCD/QIdvrPuyFdirb/p1S65guv1mMK9x6w/+yKze38kdozd53N u4YJENh20REmei8bMueoQWJ9Sfg8ZZ2DEKestkFMS4HrxPJpzeCZ9scnOYByAg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694703629; a=rsa-sha256; cv=none; b=HT3h7OUVi5zK2B+eEdtLqO9gHjfXS3LEL6XXVQjQKUKpRgdzVRTdOqurygmFyFGlhL2sNu x7rwyEN9OIhPJ2yDCPPwd1K2ALK5xBRHcKZWhHP6LnjuWmSOiwM7OvMHu/p4JL08djUfsp JK0gyUO2CZ2mBBE3MdNYjJPsicYTxltDCOu3Li7VGyiLNPySIDiGTdPKjL2WCONZx5hIWr xp0XMGmd/U/LEJtpRKEILtsNe3mEKWPzRJV8xKKAqLLpF2t24VXrEZQw7yrTcKOrJdn/fk 5hc70/oH9Q8NEO6I6G8dgWr2DBvnkWEhKQjbhK+qceOtJfxHRnI+fEd7bdXCdg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694703629; 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=TDhsN36bHaSlBzwbTSQGGGJDNhLKH7pXSQ3yMifCWlw=; b=ckHLvsGfNFKNh6xvpHDZzLPncwaASejO1U8VBzGGi3Li7ZS2gwQIi5u1iPGA2+Vc0l0ZEQ o7Em19xpFEH13MYw+h5McHezlfshtbPiKPStSPcXNpw24e5OzkKZr3amDfqSAhbbdrc7B+ max5HsJmCtD64IeKriTG4eQdKChHXCR7bGS7ZSOqpkG7XbIfIR2A8UZaLXhSw0vlIIHDJM Xee+i00B6Qzp1r3fVIAH+KsFOSyXMCIMu2bRjWKIxYY9VPX3BTUcAsT64cJMRZ3KYbyDHe 8HTA/iSgSN1iJIDmP8WK1c2+dQZEsBi/4r65WanNwrdTGTn3e65xxgvSdFWAKA== 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 4RmgVN6GXNz11tB; Thu, 14 Sep 2023 15:00:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 38EF0Sow089335; Thu, 14 Sep 2023 15:00:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38EF0S8V089332; Thu, 14 Sep 2023 15:00:28 GMT (envelope-from git) Date: Thu, 14 Sep 2023 15:00:28 GMT Message-Id: <202309141500.38EF0S8V089332@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: f01e4edfc85f - stable/13 - libipf: fix parser error message. 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: des X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: f01e4edfc85f0d147a3462247f053aefcbb6552c Auto-Submitted: auto-generated The branch stable/13 has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=f01e4edfc85f0d147a3462247f053aefcbb6552c commit f01e4edfc85f0d147a3462247f053aefcbb6552c Author: Dag-Erling Smørgrav AuthorDate: 2023-08-31 20:15:54 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2023-09-14 14:59:52 +0000 libipf: fix parser error message. MFC after: 1 week Reviewed by: cy Differential Revision: https://reviews.freebsd.org/D41652 (cherry picked from commit 4cd9d804ae8b955d47dfa0bba06e7c254d760cb1) --- sbin/ipf/libipf/parseipfexpr.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sbin/ipf/libipf/parseipfexpr.c b/sbin/ipf/libipf/parseipfexpr.c index 215e43b2978d..880258e5dd66 100644 --- a/sbin/ipf/libipf/parseipfexpr.c +++ b/sbin/ipf/libipf/parseipfexpr.c @@ -93,11 +93,7 @@ parseipfexpr(char *line, char **errorptr) break; } if (e->ipoe_word == NULL) { - error = malloc(32); - if (error != NULL) { - snprintf(error, sizeof(error), "keyword (%.10s) not found", - ops); - } + asprintf(&error, "keyword (%.10s) not found", ops); goto parseerror; }