diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2007-03-05 22:10:51 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2007-03-05 22:10:51 +0000 |
commit | 66eba4150e831f0fed47e24481bb492a3ea2b8fe (patch) | |
tree | fde9c7c55b2aaf9dfa31079974a2d0d238386435 /usr.sbin | |
parent | 766b8c10aa13938518b061177e16978d60ab21bd (diff) |
better diagnostics on inet_net_pton failing
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bgpctl/irr_prefix.c | 5 |
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; |