summaryrefslogtreecommitdiff
path: root/sysdep/unix
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2022-11-29 19:43:38 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2022-11-30 02:43:39 +0100
commit543c8ba0971e91da3fe507dbfc1e1f9b556642b1 (patch)
treee8f2bed5b16410eef1299c7ab864f3184109146b /sysdep/unix
parent140c534fb81d0e165b7d674e869c646455ed19d1 (diff)
BSD: Fix krt socket code w.r.t. rte/rta changes
Diffstat (limited to 'sysdep/unix')
-rw-r--r--sysdep/unix/krt.c2
1 files changed, 1 insertions, 1 deletions
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