The branch main has been updated by igoro:

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

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

Reply via email to