original bug report from syzkaller
Reported-by: syzbot+d19060a65721eb432a72@syzkaller.appspotmail.com
broken fix found by Hrvoje Popovski
hint to the problem and OK deraadt@
-/* $OpenBSD: if.c,v 1.717 2024/02/05 18:27:47 mvs Exp $ */
+/* $OpenBSD: if.c,v 1.718 2024/02/06 00:18:53 bluhm Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
{
NET_ASSERT_LOCKED();
- if (panicstr != NULL) {
+ if (panicstr == NULL) {
rtm_ifchg(ifp);
rt_if_track(ifp);
}