Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Apr 2026 11:55:39 +0000
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 13b4a14c719a - main - libpfctl: fix add state/source limiter
Message-ID:  <69e21fbb.3a696.318383b4@gitrepo.freebsd.org>

index | next in thread | raw e-mail

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;
 	}
 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69e21fbb.3a696.318383b4>