summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2021-06-17 08:16:05 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2021-06-17 08:16:05 +0000
commitb28cede2f67c23245fd6bf9c98fab3e0e6556912 (patch)
treea8c8c3af1877eed850c6ddb4e950b26bd747c569 /usr.sbin/bgpd
parent126c8819fe6ac8a638be5a059f01eff7d2aa0070 (diff)
Better error message when a bad nexthop is passed to nexthop_hash().
OK job@
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/rde_rib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde_rib.c b/usr.sbin/bgpd/rde_rib.c
index 906e021eb85..de4054e7cd8 100644
--- a/usr.sbin/bgpd/rde_rib.c
+++ b/usr.sbin/bgpd/rde_rib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde_rib.c,v 1.221 2021/05/04 09:27:09 claudio Exp $ */
+/* $OpenBSD: rde_rib.c,v 1.222 2021/06/17 08:16:04 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org>
@@ -1940,7 +1940,7 @@ nexthop_hash(struct bgpd_addr *nexthop)
sizeof(struct in6_addr));
break;
default:
- fatalx("nexthop_hash: unsupported AF");
+ fatalx("nexthop_hash: unsupported AID %d", nexthop->aid);
}
return (&nexthoptable.nexthop_hashtbl[h & nexthoptable.nexthop_hashmask]);
}