The branch stable/15 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=ac562a719ba0b3fe83d1c86387b8b0c23c147aaf
commit ac562a719ba0b3fe83d1c86387b8b0c23c147aaf Author: Kristof Provost <[email protected]> AuthorDate: 2025-11-03 13:55:44 +0000 Commit: Kristof Provost <[email protected]> CommitDate: 2025-11-12 23:29:36 +0000 libpfctl: fix error handling In two cases we returned E2BIG where it should have been a boolean ('false'). MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit 9bb1c46b4c38c44565fc24f13acdc19b0cb5a1c4) --- 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 fbf9796d9887..8dea373d8941 100644 --- a/lib/libpfctl/libpfctl.c +++ b/lib/libpfctl/libpfctl.c @@ -1484,7 +1484,7 @@ snl_attr_get_pf_rule_labels(struct snl_state *ss, struct nlattr *nla, bool ret; if (l->i >= PF_RULE_MAX_LABEL_COUNT) - return (E2BIG); + return (false); ret = snl_attr_copy_string(ss, nla, (void *)PF_RULE_LABEL_SIZE, l->labels[l->i]); @@ -1554,7 +1554,7 @@ snl_attr_get_pf_timeout(struct snl_state *ss, struct nlattr *nla, bool ret; if (t->i >= PFTM_MAX) - return (E2BIG); + return (false); ret = snl_attr_get_uint32(ss, nla, NULL, &t->timeouts[t->i]); if (ret)
