diff options
| author | Igor Ostapenko <igoro@FreeBSD.org> | 2024-10-07 11:16:44 +0000 |
|---|---|---|
| committer | Igor Ostapenko <igoro@FreeBSD.org> | 2024-10-07 11:16:44 +0000 |
| commit | dfcb8de5ef803b45e9c1e3974ce12f507d43900d (patch) | |
| tree | 8d16cc0b22249f883f479cdfd4a3304dfd84d350 | |
| parent | 3670421e21932c44225b9457c50dd67da3abcd84 (diff) | |
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
| -rw-r--r-- | sys/net/dummymbuf.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, ';'); |
