From 39b80cd0f934f3ca4e84f97a54cbef93edbfe313 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Sat, 26 Sep 1998 00:31:27 +0000 Subject: [PATCH] netdbGetClosestParent() needs to check the peer is really a parent --- src/net_db.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/net_db.cc b/src/net_db.cc index bd233cd779..7fe425e868 100644 --- a/src/net_db.cc +++ b/src/net_db.cc @@ -1,6 +1,6 @@ /* - * $Id: net_db.cc,v 1.129 1998/09/23 21:29:29 glenn Exp $ + * $Id: net_db.cc,v 1.130 1998/09/25 18:31:27 wessels Exp $ * * DEBUG: section 38 Network Measurement Database * AUTHOR: Duane Wessels @@ -1011,6 +1011,8 @@ netdbClosestParent(request_t * request) p = peerFindByName(h->peername); if (NULL == p) /* not found */ continue; + if (neighborType(p, request) != PEER_PARENT) + continue; if (!peerHTTPOkay(p, request)) /* not allowed */ continue; return p; -- 2.47.3