diff options
Diffstat (limited to 'usr.sbin/bgpd/session.c')
-rw-r--r-- | usr.sbin/bgpd/session.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index 35b22e6253f..00063c8aab8 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.179 2004/06/22 07:42:41 henning Exp $ */ +/* $OpenBSD: session.c,v 1.180 2004/06/22 07:58:19 alexander Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -289,7 +289,7 @@ session_main(struct bgpd_config *config, struct peer *cpeers, if (peer_cnt > peer_l_elms || peer_cnt + 2 * PEER_L_RESERVE < peer_l_elms) { if ((newp = realloc(peer_l, sizeof(struct peer *) * - peer_cnt + PEER_L_RESERVE)) == NULL) { + (peer_cnt + PEER_L_RESERVE))) == NULL) { /* panic for now */ log_warn("could not resize peer_l from %u -> %u" " entries", peer_l_elms, @@ -303,7 +303,7 @@ session_main(struct bgpd_config *config, struct peer *cpeers, new_cnt = PFD_LISTENERS_START + listener_cnt + peer_cnt + ctl_cnt; if (new_cnt > pfd_elms || - new_cnt + 2 * PFD_RESERVE < pfd_elms) { + (new_cnt + 2) * PFD_RESERVE < pfd_elms) { if ((newp = realloc(pfd, sizeof(struct pollfd) * (new_cnt + PFD_RESERVE))) == NULL) { /* panic for now */ |