summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2007-03-05 22:10:51 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2007-03-05 22:10:51 +0000
commit66eba4150e831f0fed47e24481bb492a3ea2b8fe (patch)
treefde9c7c55b2aaf9dfa31079974a2d0d238386435 /usr.sbin
parent766b8c10aa13938518b061177e16978d60ab21bd (diff)
better diagnostics on inet_net_pton failing
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpctl/irr_prefix.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/bgpctl/irr_prefix.c b/usr.sbin/bgpctl/irr_prefix.c
index 98e26ffbe64..5e586abf703 100644
--- a/usr.sbin/bgpctl/irr_prefix.c
+++ b/usr.sbin/bgpctl/irr_prefix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: irr_prefix.c,v 1.11 2007/03/05 16:43:24 henning Exp $ */
+/* $OpenBSD: irr_prefix.c,v 1.12 2007/03/05 22:10:50 henning Exp $ */
/*
* Copyright (c) 2007 Henning Brauer <henning@openbsd.org>
@@ -83,7 +83,8 @@ prefixset_addmember(char *s)
if ((len = inet_net_pton(AF_INET, s, &pfx->addr.in,
sizeof(pfx->addr.in))) == -1)
- err(1, "prefixset_addmember inet_net_pton \"%s\"", s);
+ err(1, "prefixset_addmember %s inet_net_pton \"%s\"",
+ curpfxs->as, s);
pfx->af = AF_INET;
pfx->len = len;