without kernel lock. Unlock the two callers in ip6_input_if() that
have been forgotten.
OK mvs@ kn@
-/* $OpenBSD: ip6_input.c,v 1.237 2021/06/03 04:47:54 dlg Exp $ */
+/* $OpenBSD: ip6_input.c,v 1.238 2021/12/25 13:35:17 bluhm Exp $ */
/* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */
/*
}
if (ours) {
- if (af == AF_UNSPEC) {
- KERNEL_LOCK();
+ if (af == AF_UNSPEC)
nxt = ip_deliver(mp, offp, nxt,
AF_INET6);
- KERNEL_UNLOCK();
- }
goto out;
}
goto bad;
goto out;
if (ours) {
- if (af == AF_UNSPEC) {
- KERNEL_LOCK();
+ if (af == AF_UNSPEC)
nxt = ip_deliver(mp, offp, nxt, AF_INET6);
- KERNEL_UNLOCK();
- }
goto out;
}