From d8525c0ee8765aa583ddd165b38f30f72c591f23 Mon Sep 17 00:00:00 2001 From: claudio Date: Thu, 7 May 2026 14:47:36 +0000 Subject: [PATCH] Template peers need to check xp->rdesession to know if the RDE has the session running or not. Right now it checks the template itself which is never synced. OK tb@ --- usr.sbin/bgpd/session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index 38f29cbf6ea..c50ffc42872 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.531 2026/05/07 09:17:27 claudio Exp $ */ +/* $OpenBSD: session.c,v 1.532 2026/05/07 14:47:36 claudio Exp $ */ /* * Copyright (c) 2003, 2004, 2005 Henning Brauer @@ -1960,7 +1960,7 @@ merge_peers(struct bgpd_config *c, struct bgpd_config *nc) session_template_clone(xp, NULL, xp->conf.id, xp->conf.remote_as); - if (p->rdesession) + if (xp->rdesession) imsg_rde(IMSG_SESSION_ADD, xp->conf.id, &xp->conf, sizeof(xp->conf));