From: claudio Date: Tue, 1 Oct 2024 18:31:10 +0000 (+0000) Subject: Explicitly set peer.auth_conf.method, the auth_state value is never X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=63c2b4966a546b7f8202748dfbdc90cc8330e285;p=openbsd Explicitly set peer.auth_conf.method, the auth_state value is never initialized in the SE so bgpctl did always see 0, auth_conf.method is on the other hand properly shared. OK tb@ --- diff --git a/usr.sbin/bgpd/control.c b/usr.sbin/bgpd/control.c index b474a48fc1c..43ecd02bd9e 100644 --- a/usr.sbin/bgpd/control.c +++ b/usr.sbin/bgpd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.119 2024/10/01 11:49:24 claudio Exp $ */ +/* $OpenBSD: control.c,v 1.120 2024/10/01 18:31:10 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -557,6 +557,7 @@ control_imsg_relay(struct imsg *imsg, struct peer *p) } peer = *p; explicit_bzero(&peer.auth_conf, sizeof(peer.auth_conf)); + peer.auth_conf.method = p->auth_conf.method; peer.stats.prefix_cnt = stats.prefix_cnt; peer.stats.prefix_out_cnt = stats.prefix_out_cnt; peer.stats.prefix_rcvd_update = stats.prefix_rcvd_update;