jcs's openbsd hax
openbsd

Call timer_remove_all with the right object.

Copy-paste bug which was introduced with rev 1.128.
Causes the parent to SIGSEGV on config reloads when mrt dumps are used.

claudio 69f8c3e7 60b112c3

+3 -3
+3 -3
usr.sbin/bgpd/mrt.c
··· 1 - /* $OpenBSD: mrt.c,v 1.133 2025/12/16 12:23:50 claudio Exp $ */ 1 + /* $OpenBSD: mrt.c,v 1.134 2026/02/17 14:06:44 claudio Exp $ */ 2 2 3 3 /* 4 4 * Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> ··· 1206 1206 IMSG_MRT_CLOSE, 0, 0, -1, m, sizeof(struct mrt)) == 1207 1207 -1) 1208 1208 log_warn("mrt_reconfigure"); 1209 - timer_remove_all(&MRT2MC(xm)->timer); 1209 + timer_remove_all(&MRT2MC(m)->timer); 1210 1210 LIST_REMOVE(m, entry); 1211 1211 free(m); 1212 1212 continue; ··· 1284 1284 1285 1285 /* free config */ 1286 1286 while ((m = LIST_FIRST(nconf)) != NULL) { 1287 - timer_remove_all(&MRT2MC(xm)->timer); 1287 + timer_remove_all(&MRT2MC(m)->timer); 1288 1288 LIST_REMOVE(m, entry); 1289 1289 free(m); 1290 1290 }