summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2006-11-06 14:07:35 +0000
committerhenning <henning@openbsd.org>2006-11-06 14:07:35 +0000
commita22656bc4d877a7f2053ab505bd436a852a34b5c (patch)
tree9f128491c03d1b8f68f9b32a02637887bc7c916a
parentforce a new sensor task to be run as soon as possible. previously it used (diff)
downloadwireguard-openbsd-a22656bc4d877a7f2053ab505bd436a852a34b5c.tar.xz
wireguard-openbsd-a22656bc4d877a7f2053ab505bd436a852a34b5c.zip
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
-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);