summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2024-05-30 08:29:31 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2024-05-30 08:29:31 +0000
commit40edf751eed71cb6f691c26d9b82e4da07101380 (patch)
tree5995f85a94da869178a74ab003456fb1f2cb1936 /usr.sbin/bgpd
parentadd48d4c9e4f72a1cfd3a535e78921a466aea56e (diff)
Fix copy-paste error in last commit. Fixes lladdr and l3vpn regress.
Noticed by anton@
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/rde_update.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde_update.c b/usr.sbin/bgpd/rde_update.c
index 2c81bbe216c..e9c51b7a7eb 100644
--- a/usr.sbin/bgpd/rde_update.c
+++ b/usr.sbin/bgpd/rde_update.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde_update.c,v 1.167 2024/05/29 10:41:12 claudio Exp $ */
+/* $OpenBSD: rde_update.c,v 1.168 2024/05/30 08:29:30 claudio Exp $ */
/*
* Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org>
@@ -464,7 +464,7 @@ up_get_nexthop(struct rde_peer *peer, struct filterstate *state, uint8_t aid)
break;
case AID_INET6:
case AID_VPN_IPv6:
- if (peer->local_v4_addr.aid == AID_INET6)
+ if (peer->local_v6_addr.aid == AID_INET6)
peer_local = &peer->local_v6_addr;
break;
case AID_FLOWSPECv4: