Date: Fri, 9 May 2025 22:16:22 GMT 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: 138e34cffe3e - main - pfctl: rather than printing the wrong function name, dont print it at all Message-ID: <202505092216.549MGM5o063050@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=138e34cffe3e611634efc8b92ddb8b9709cc106b commit 138e34cffe3e611634efc8b92ddb8b9709cc106b Author: Kristof Provost <kp@FreeBSD.org> AuthorDate: 2025-05-08 15:21:42 +0000 Commit: Kristof Provost <kp@FreeBSD.org> CommitDate: 2025-05-09 20:49:29 +0000 pfctl: rather than printing the wrong function name, dont print it at all found by Klemens Nanni Obtained from: OpenBSD, benno <benno@openbsd.org>, 20d6a6e4d2 Sponsored by: Rubicon Communications, LLC ("Netgate") --- sbin/pfctl/pfctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c index 6e0be926eff0..595f688d6139 100644 --- a/sbin/pfctl/pfctl.c +++ b/sbin/pfctl/pfctl.c @@ -1126,7 +1126,7 @@ pfctl_show_eth_rules(int dev, char *path, int opts, enum pfctl_show format, if (anchorname[0] == '/') { if ((npath = calloc(1, MAXPATHLEN)) == NULL) - errx(1, "pfctl_rules: calloc"); + errx(1, "calloc"); snprintf(npath, MAXPATHLEN, "%s", anchorname); } else { if (path[0]) @@ -1242,7 +1242,7 @@ pfctl_show_rules(int dev, char *path, int opts, enum pfctl_show format, if (anchorname[0] == '/') { if ((npath = calloc(1, MAXPATHLEN)) == NULL) - errx(1, "pfctl_rules: calloc"); + errx(1, "calloc"); strlcpy(npath, anchorname, MAXPATHLEN); } else { if (path[0]) @@ -1461,7 +1461,7 @@ pfctl_show_nat(int dev, const char *path, int opts, char *anchorname, int depth, } if ((npath = calloc(1, MAXPATHLEN)) == NULL) - errx(1, "pfctl_rules: calloc"); + errx(1, "calloc"); if (anchorname[0] == '/') { snprintf(npath, MAXPATHLEN, "%s", anchorname);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202505092216.549MGM5o063050>