From nobody Thu Aug 31 20:16:38 2023 X-Original-To: dev-commits-src-main@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 4RcC9g04VRz4rZ4F; Thu, 31 Aug 2023 20:16:39 +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 4RcC9f6cZXz3DQf; Thu, 31 Aug 2023 20:16:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693512998; 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=0V16i6GdZmrNpQTJGj8YCPQLDHWC1X4n7+X1JntIT7w=; b=oPRPPoxoSL4NsHTefYLqJ48ozvrhj9Ld5gE42tmcTU/owAusvdGym7eKCTGoQdzPc4R8c5 Hs8+4zmKKmJnaDS4sTgxBFMIq5YvpZoJ4jwLYINoQ8pR8ChBxRkwP8ZLtw3lcjWf/8CYqp FghXw0fbuW00PWpMeSeGaCh1g2YcF8q5OD/ZsIIW7sJiz7AlebdyPugkG0+uD6Xyjv1Z6p LolkaeVL3w/3fMfvTW51yZZ1UajAGinN2q6lEye+JZnocHe1qryE6aOjqmanhtfdGTNfs8 Ca+aK65p8X5X4L2sq7Po4TeKCPiIaOdrxL661Q9oI5KfuhXi8hSbrVJT0JPuWQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693512998; a=rsa-sha256; cv=none; b=tI7zhiPV+ZVUiv8sfOucLTFn2LUaO6aGHmsIY7YxDtZGEjtCny8PWmpXqvHCT3Of2tace+ Pz5qXchtHrMAgtbQDqEg+hp3PpB3W3VxCG3p6saDTNAIbijNCaFcmpxxLxVLEi7s4vr91X k6MdDhsGh7AZvrAYd1m76d9pqpG+s6XKQLZAvHpwzHeIEz59zEYb01ZoWjJGo2KVXUqsHZ ts+SwhmkL637Z87zXexqohpKRrxQJ8j9m/mgWiZ67KNQHYeXwFVwqardMt98simePr/4N1 ehTGtCqZlFqk48dI7NtAmBlFLMs2HFyV9WlGJtG09z7L5fzFCjRoBdDdRtg5sg== 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=1693512998; 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=0V16i6GdZmrNpQTJGj8YCPQLDHWC1X4n7+X1JntIT7w=; b=A+GAtvHlQGxNJa4iE7iNfFeixh/SXIAxDV56/onOGz3Rd+m0TryaatgPPuvp9Pk34udLXH 1tgURM3HQ1DrCxgtaiAWFBBURzQPbs/YaKVHyBj/SOW/ltKlK0LJT2fSJ5zvjI3EXhEohw tBTZj23ZF/55QtLrays+ioMPwcSecrXYROt1y0ryE8jKLB3IR6kjDV5FY7PZ3c61MYJcyf SDHGlSdyA391aLK12eycSQjnVschdFMRSxav8DeVMkDSFg36qATbjQS3rHfNh97Q3hjAuh Mzs/57xVDEJy776fJN2tDnW0j3snqJZV41rG8NHYC0IGUaaNEGybXhnI3OQM4g== 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 4RcC9f5fyNzWkF; Thu, 31 Aug 2023 20:16:38 +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 37VKGcPU013325; Thu, 31 Aug 2023 20:16:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37VKGcnd013322; Thu, 31 Aug 2023 20:16:38 GMT (envelope-from git) Date: Thu, 31 Aug 2023 20:16:38 GMT Message-Id: <202308312016.37VKGcnd013322@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: 4cd9d804ae8b - main - libipf: fix parser error message. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 4cd9d804ae8b955d47dfa0bba06e7c254d760cb1 Auto-Submitted: auto-generated The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=4cd9d804ae8b955d47dfa0bba06e7c254d760cb1 commit 4cd9d804ae8b955d47dfa0bba06e7c254d760cb1 Author: Dag-Erling Smørgrav AuthorDate: 2023-08-31 20:15:54 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2023-08-31 20:15:54 +0000 libipf: fix parser error message. MFC after: 1 week Reviewed by: cy Differential Revision: https://reviews.freebsd.org/D41652 --- 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; }