From 6b1dd3c7230701974cbe68f3baad9a30c4160768 Mon Sep 17 00:00:00 2001 From: claudio Date: Thu, 17 Jun 2021 08:16:04 +0000 Subject: [PATCH] Better error message when a bad nexthop is passed to nexthop_hash(). OK job@ --- usr.sbin/bgpd/rde_rib.c | 4 ++-- 1 file 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 @@ -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]); } -- 2.20.1