summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2013-10-19 09:24:00 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2013-10-19 09:24:00 +0000
commit92cfd7e86dba55a3f569deca81f47bd405ccc228 (patch)
treee9251663906c3fbb05719dbbad87074a9428b7d7 /sys
parent1c20126efea60c7dc72804fb2948de83d220af9a (diff)
In carp_set_addr6() break out of the loop after the interface address
has been found. This makes the IPv6 code work like IPv4. OK mpi@
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_carp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
index a4793013a8b..756bb6c9172 100644
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_carp.c,v 1.211 2013/10/17 16:27:43 bluhm Exp $ */
+/* $OpenBSD: ip_carp.c,v 1.212 2013/10/19 09:23:59 bluhm Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff. All rights reserved.
@@ -2129,8 +2129,8 @@ carp_set_addr6(struct carp_softc *sc, struct sockaddr_in6 *sin6)
ia->ia_ifp->if_type != IFT_CARP &&
(ia->ia_ifp->if_flags & IFF_MULTICAST) &&
(i == 4)) {
- if (!ia_if)
- ia_if = ia;
+ ia_if = ia;
+ break;
}
}