Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Oct 2024 11:19:17 GMT
From:      Igor Ostapenko <igoro@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: dfcb8de5ef80 - main - dummymbuf: Log the entire rule set if no delimiters are present
Message-ID:  <202410071119.497BJHKc003506@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by igoro:

URL: https://cgit.FreeBSD.org/src/commit/?id=dfcb8de5ef803b45e9c1e3974ce12f507d43900d

commit dfcb8de5ef803b45e9c1e3974ce12f507d43900d
Author:     Igor Ostapenko <igoro@FreeBSD.org>
AuthorDate: 2024-10-07 11:16:44 +0000
Commit:     Igor Ostapenko <igoro@FreeBSD.org>
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, ';');



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202410071119.497BJHKc003506>