From nobody Mon Oct 07 11:19:17 2024 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 4XMc9f1Twjz5Xkr3; Mon, 07 Oct 2024 11:19:18 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XMc9d6GGmz4JSZ; Mon, 7 Oct 2024 11:19:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728299957; 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=uOxb3RSD1HMNyY7n8pdkVqrUqIlZbn4fogADNfUncYM=; b=I7Qi4ky19Jz3K5PEA5gtvfGwka5Cpgae6Rubnj+i+ElcPzeaf6da6AWQOBXQSjfECREzAe qxAMUIc8tYYjwQpIgvtzjWd06QHvEe1kYDCyhIihsfQzkCJ1GBgJXxtFU9S1ZCkejTv4jg 8JfCONtB8U8JRuFHzmhDCkhMxlpu1urOCnjixTKxLy50Cj5D05MdxDlT7njujphWILW7pm qrHNEg94Ui/eA7fFgKZr7fFY9gxn13ALkM55xcYa7pQDmQRGzzzl2lGlxOBCDJhxbAmd8y HZUEHWygzvzOi7yH3qu5T9J/tZKuuEVI5whVEyaFqR/YZ+xShWD/xVHt4OsHpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728299957; 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=uOxb3RSD1HMNyY7n8pdkVqrUqIlZbn4fogADNfUncYM=; b=JeiQXFdKP70kNKiAwJrl4TXxpSRXcKLgpxLL2gNzsaPlNURk4n+IjRCy+ncsAxwFrzTAvL F4UGCgNRKOUiAf3B+tMhykqN3zesqUB01Oc2qxqc7WOrfXJWju3YPMCe3naZZHuwyszn6X yBpGk/NVs8w9wZ79IuIFsC/Jm7ZsYoIGqbRhtDhr/E6q6wGCqUIty+lnU0tI+mSgDPuPVn 0qtm8qT00Uj4XxN9xZMmW1MmukU0a/zkcn9C1RakSRC9Gb5YwimvJrldGln5V70wFbRdqz Qhxs1GGkLiB1YMTSBXXLTwnGZnrszd8AR1NIuCgxebkZl5CfFxYuo6zkq81H1w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728299957; a=rsa-sha256; cv=none; b=lKEKrp92mRv5Kim2kDcQO2b8YeofZy0fsYHhwgHvtuu+cCRS3FiCWMzOnuJPvnFLWgzXEA b4jpncngEKFuaBnAE+QAOwe6iINHpm1QNcav0jIHHh9+4IN5pC3XvEdqtOqf7YUaxZzLeY YG+vE8jO/lkojGXbaRTRNRawnMKvdRWi3BKh9+Ps2Z6HJm9r2KL4b9hGBfD6oC9DtNSpnj oxLrId3vY/tMNJRSYa7YkPWfmPFeO2vnHeQX0Q1rziERgOdkjZoLQqT6Nhe6f9bL6sDCxj Cxv4PczcgACc7Pmf9/JvE3zKc/v5nG96VvcGs/gQl+7C6171Tzlce45lpEHRxw== 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 4XMc9d1jg5zkZp; Mon, 7 Oct 2024 11:19:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 497BJHXn003509; Mon, 7 Oct 2024 11:19:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 497BJHKc003506; Mon, 7 Oct 2024 11:19:17 GMT (envelope-from git) Date: Mon, 7 Oct 2024 11:19:17 GMT Message-Id: <202410071119.497BJHKc003506@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Igor Ostapenko Subject: git: dfcb8de5ef80 - main - dummymbuf: Log the entire rule set if no delimiters are present 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: igoro X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dfcb8de5ef803b45e9c1e3974ce12f507d43900d Auto-Submitted: auto-generated The branch main has been updated by igoro: URL: https://cgit.FreeBSD.org/src/commit/?id=dfcb8de5ef803b45e9c1e3974ce12f507d43900d commit dfcb8de5ef803b45e9c1e3974ce12f507d43900d Author: Igor Ostapenko AuthorDate: 2024-10-07 11:16:44 +0000 Commit: Igor Ostapenko CommitDate: 2024-10-07 11:16:44 +0000 dummymbuf: Log the entire rule set if no delimiters are present An empty string was printed instead. Reviewed by: kp Approved by: kp (mentor) Differential Revision: https://reviews.freebsd.org/D46964 --- sys/net/dummymbuf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/net/dummymbuf.c b/sys/net/dummymbuf.c index b90fc55f458b..f7aef562c8d2 100644 --- a/sys/net/dummymbuf.c +++ b/sys/net/dummymbuf.c @@ -223,6 +223,7 @@ read_rule(const char **cur, struct rule *rule, bool *eof) while (**cur == ' ') (*cur)++; rule->syntax_begin = *cur; + rule->syntax_len = strlen(rule->syntax_begin); /* syntax_len */ char *delim = strchr(*cur, ';');