summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/session.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-04-25 08:06:01 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-04-25 08:06:01 +0000
commitfdcb18a6ba06efdca06c7fec17baeb3279d610dd (patch)
treef9f427ff59fbc39f1d4f6676c69703688e2337d3 /usr.sbin/bgpd/session.c
parent37c92f570b0006ae5ef608e55d28d1b71232c851 (diff)
do not kill cloned neighbors on reload, claudio ok
Diffstat (limited to 'usr.sbin/bgpd/session.c')
-rw-r--r--usr.sbin/bgpd/session.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index aac6cc01fa6..657bc0ebf5b 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.145 2004/04/25 07:16:24 henning Exp $ */
+/* $OpenBSD: session.c,v 1.146 2004/04/25 08:06:00 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -1776,7 +1776,8 @@ session_dispatch_imsg(struct imsgbuf *ibuf, int idx)
}
/* find peers to be deleted */
for (p = peers; p != NULL; p = p->next)
- if (p->conf.reconf_action == RECONF_NONE)
+ if (p->conf.reconf_action == RECONF_NONE &&
+ !p->conf.cloned)
p->conf.reconf_action = RECONF_DELETE;
free(nconf);
nconf = NULL;