summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2006-11-06 14:07:36 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2006-11-06 14:07:36 +0000
commit1a4c2224244dd04852e7e252cb6f8b6b70791be1 (patch)
treefecce4a760fe87a4613d51ec5358f9e5e25b4475 /usr.sbin/bgpd
parent708a703a2d415eaf1b4f2c6da2264a300a4bc430 (diff)
fix pasto; only announce restart capability when announcing the restart
capability is enabled, not when annoucing the refresh capability is enabled... Alex Hunsaker <badalex@gmail.com> ran into that issue
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index 87c398dec29..d039d227406 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.263 2006/09/19 13:04:01 henning Exp $ */
+/* $OpenBSD: session.c,v 1.264 2006/11/06 14:07:35 henning Exp $ */
/*
* Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org>
@@ -1317,7 +1317,7 @@ session_open(struct peer *p)
errs += session_capa_add(p, opb, CAPA_REFRESH, 0, &optparamlen);
/* End-of-RIB marker, draft-ietf-idr-restart */
- if (p->capa.ann.refresh) { /* 4 bytes data */
+ if (p->capa.ann.restart) { /* 4 bytes data */
u_char c[4];
bzero(&c, 4);