summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2004-04-28 04:36:16 +0000
committerclaudio <claudio@openbsd.org>2004-04-28 04:36:16 +0000
commit20f34b392b3a8399fd43fced1855bd6551a2184a (patch)
treeacc32aa294b673ed3030d07f56b5c1b054aeba06
parentallow ah/esp spec with IKE, markus ok (diff)
downloadwireguard-openbsd-20f34b392b3a8399fd43fced1855bd6551a2184a.tar.xz
wireguard-openbsd-20f34b392b3a8399fd43fced1855bd6551a2184a.zip
Unbreak the stuff that I commited first that was totaly broken. OK henning@
-rw-r--r--usr.sbin/bgpd/rde.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c
index ef84b6d689e..ae60ae43a87 100644
--- a/usr.sbin/bgpd/rde.c
+++ b/usr.sbin/bgpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.107 2004/04/28 03:34:38 henning Exp $ */
+/* $OpenBSD: rde.c,v 1.108 2004/04/28 04:36:16 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -1056,18 +1056,22 @@ peer_down(u_int32_t id)
void
peer_dump(u_int32_t id, u_int16_t afi, u_int8_t safi)
{
+ struct rde_peer *peer;
+
+ peer = peer_get(id);
+ if (peer == NULL) {
+ log_warnx("peer_down: unknown peer id %d", id);
+ return;
+ }
+
if (afi == AFI_ALL || afi == AFI_IPv4)
if (safi == SAFI_ALL || safi == SAFI_UNICAST ||
safi == SAFI_BOTH) {
-#if 0
pt_dump(up_dump_upcall, peer);
-#endif
return;
}
-#if 0
log_peer_warnx(&peer->conf, "unsupported AFI, SAFI combination");
-#endif
}
/*