From 543c8ba0971e91da3fe507dbfc1e1f9b556642b1 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Tue, 29 Nov 2022 19:43:38 +0100 Subject: BSD: Fix krt socket code w.r.t. rte/rta changes --- sysdep/unix/krt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdep/unix') diff --git a/sysdep/unix/krt.c b/sysdep/unix/krt.c index cb0f1d4f..9f95247f 100644 --- a/sysdep/unix/krt.c +++ b/sysdep/unix/krt.c @@ -937,7 +937,7 @@ krt_rt_notify(struct proto *P, struct channel *ch UNUSED, net *net, * kernel, which would remove the new imported route instead. */ rte *best = net->routes; - if (!new && best && (best->attrs->src->proto == P)) + if (!new && best && (best->src->proto == P)) return; #endif -- cgit v1.2.3