diff options
author | Sebastian Benoit <benno@cvs.openbsd.org> | 2017-03-27 17:38:10 +0000 |
---|---|---|
committer | Sebastian Benoit <benno@cvs.openbsd.org> | 2017-03-27 17:38:10 +0000 |
commit | 881664f84813970954dd22913651ebee002e7024 (patch) | |
tree | 15fdf58974dee042e19f5089f60ea2525c7082d4 /sbin/pfctl | |
parent | be937ec9c344c2a67820d47fa5105e5b70583317 (diff) |
rather than printing the wrong function name, dont print it at all.
found by Klemens Nanni
Diffstat (limited to 'sbin/pfctl')
-rw-r--r-- | sbin/pfctl/pfctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c index 4b92a5ca215..5e4ff8472f1 100644 --- a/sbin/pfctl/pfctl.c +++ b/sbin/pfctl/pfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl.c,v 1.338 2017/01/26 08:24:34 benno Exp $ */ +/* $OpenBSD: pfctl.c,v 1.339 2017/03/27 17:38:09 benno Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -753,7 +753,7 @@ pfctl_show_rules(int dev, char *path, int opts, enum pfctl_show format, memset(&pr, 0, sizeof(pr)); if (anchorname[0] == '/') { if ((npath = calloc(1, PATH_MAX)) == NULL) - errx(1, "pfctl_rules: calloc"); + err(1, "calloc"); strlcpy(npath, anchorname, PATH_MAX); } else { if (path[0]) |