git: 13b4a14c719a - main - libpfctl: fix add state/source limiter
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Apr 2026 11:55:39 UTC
The branch main has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=13b4a14c719ab7c65ccaab86ddc79f0edc312aa3
commit 13b4a14c719ab7c65ccaab86ddc79f0edc312aa3
Author: Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2026-04-16 12:30:35 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2026-04-17 11:55:05 +0000
libpfctl: fix add state/source limiter
When processing the return data from these calls pass the limiter
pointer, not the limiter pointer pointer.
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
lib/libpfctl/libpfctl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/libpfctl/libpfctl.c b/lib/libpfctl/libpfctl.c
index cd484949e4da..59783592a370 100644
--- a/lib/libpfctl/libpfctl.c
+++ b/lib/libpfctl/libpfctl.c
@@ -4084,7 +4084,7 @@ pfctl_state_limiter_add(struct pfctl_handle *h, struct pfctl_state_lim *lim)
return (ENXIO);
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
- if (! snl_parse_nlmsg(&h->ss, hdr, &statelim_parser, &lim))
+ if (! snl_parse_nlmsg(&h->ss, hdr, &statelim_parser, lim))
continue;
}
@@ -4153,7 +4153,7 @@ pfctl_source_limiter_add(struct pfctl_handle *h, struct pfctl_source_lim *lim)
return (ENXIO);
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
- if (! snl_parse_nlmsg(&h->ss, hdr, &sourcelim_parser, &lim))
+ if (! snl_parse_nlmsg(&h->ss, hdr, &sourcelim_parser, lim))
continue;
}