From 164750c2cf6c7a924db5800986d2a79c9e72f175 Mon Sep 17 00:00:00 2001 From: claudio Date: Thu, 9 Jun 2022 16:53:14 +0000 Subject: [PATCH] Change argument of ktable_get from ifd->ifi_rdomain to kif->k.rdomain. It is the same value but using the kif seems better. --- usr.sbin/bgpd/kroute.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c index 18e587f747e..7d379daf127 100644 --- a/usr.sbin/bgpd/kroute.c +++ b/usr.sbin/bgpd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.252 2022/06/09 16:45:19 claudio Exp $ */ +/* $OpenBSD: kroute.c,v 1.253 2022/06/09 16:53:14 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -2794,7 +2794,7 @@ if_change(u_short ifindex, int flags, struct if_data *ifd) kif->k.nh_reachable = reachable; - kt = ktable_get(ifd->ifi_rdomain); + kt = ktable_get(kif->k.rdomain); LIST_FOREACH(kkr, &kif->kroute_l, entry) { if (reachable) -- 2.20.1