summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2018-01-11 00:14:16 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2018-01-11 00:14:16 +0000
commit684fec0ef1524ca8909a3a8d9a2df7a0dcab2a87 (patch)
treeddd9b85ee7c8ed59901ea2dd939b4266314a6c50 /sys
parent75b71ecc66ad45c3d4cc5412f23ddcdbec877f53 (diff)
carp_ourether gets passed the parent interface, not the carp interface.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_carp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
index bcdf0457b6e..27ffc982178 100644
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_carp.c,v 1.323 2018/01/10 23:50:39 dlg Exp $ */
+/* $OpenBSD: ip_carp.c,v 1.324 2018/01/11 00:14:15 dlg Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff. All rights reserved.
@@ -1347,7 +1347,7 @@ carp_ourether(struct ifnet *ifp, u_int8_t *ena)
struct carp_softc *vh;
KERNEL_ASSERT_LOCKED(); /* touching if_carp + carp_vhosts */
- KASSERT(ifp->if_type == IFT_CARP);
+ KASSERT(ifp->if_type != IFT_CARP);
cif = &ifp->if_carp;
SRPL_FOREACH_LOCKED(vh, cif, sc_list) {