summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bgpd/parse.y')
-rw-r--r--usr.sbin/bgpd/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y
index 1dbae73d6e8..7857dd21434 100644
--- a/usr.sbin/bgpd/parse.y
+++ b/usr.sbin/bgpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.81 2004/04/25 17:51:46 henning Exp $ */
+/* $OpenBSD: parse.y,v 1.82 2004/04/25 18:21:18 henning Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -1361,7 +1361,7 @@ get_id(struct peer *newpeer)
}
/* new one */
- for (; id < UINT_MAX; id++) {
+ for (; id < UINT_MAX / 2; id++) {
for (p = peer_l_old; p != NULL && p->conf.id != id; p = p->next)
; /* nothing */
if (p == NULL) { /* we found a free id */