1
0
mirror of https://github.com/openbsd/src.git synced 2026-06-18 07:13:36 +02:00

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@
This commit is contained in:
claudio
2026-05-07 14:47:36 +00:00
parent 5105a7b42c
commit d8525c0ee8
+2 -2
View File
@@ -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 <henning@openbsd.org>
@@ -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));