summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bgpctl/parser.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2007-02-01 20:27:37 +0000
committerclaudio <claudio@openbsd.org>2007-02-01 20:27:37 +0000
commit3323994c753fdb65ba08edc733e62a4ffa8894ef (patch)
treef089e3fa2215e5b9660420232b9c639296363c80 /usr.sbin/bgpctl/parser.c
parentadd a monitor mode to hoststatectl to continuously report changes in (diff)
downloadwireguard-openbsd-3323994c753fdb65ba08edc733e62a4ffa8894ef.tar.xz
wireguard-openbsd-3323994c753fdb65ba08edc733e62a4ffa8894ef.zip
Correct function name in err() message.
Diffstat (limited to 'usr.sbin/bgpctl/parser.c')
-rw-r--r--usr.sbin/bgpctl/parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpctl/parser.c b/usr.sbin/bgpctl/parser.c
index 032347ef61d..de895e18f30 100644
--- a/usr.sbin/bgpctl/parser.c
+++ b/usr.sbin/bgpctl/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.36 2007/01/31 09:12:24 claudio Exp $ */
+/* $OpenBSD: parser.c,v 1.37 2007/02/01 20:27:37 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -580,7 +580,7 @@ parse_prefix(const char *word, struct bgpd_addr *addr, u_int8_t *prefixlen)
errx(1, "invalid netmask: %s", errstr);
if ((ps = malloc(strlen(word) - strlen(p) + 1)) == NULL)
- err(1, "host: malloc");
+ err(1, "parse_prefix: malloc");
strlcpy(ps, word, strlen(word) - strlen(p) + 1);
if (parse_addr(ps, addr) == 0)