`dp' was just allocated with M_ZERO flag, so the following bzero(3) is not
authormvs <mvs@openbsd.org>
Sat, 10 Dec 2022 21:29:10 +0000 (21:29 +0000)
committermvs <mvs@openbsd.org>
Sat, 10 Dec 2022 21:29:10 +0000 (21:29 +0000)
required.

ok kn@

sys/netinet6/nd6_nbr.c

index 0c1ae3d..6dffeda 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: nd6_nbr.c,v 1.140 2022/12/10 21:26:21 kn Exp $        */
+/*     $OpenBSD: nd6_nbr.c,v 1.141 2022/12/10 21:29:10 mvs Exp $       */
 /*     $KAME: nd6_nbr.c,v 1.61 2001/02/10 16:06:14 jinmei Exp $        */
 
 /*
@@ -1099,7 +1099,6 @@ nd6_dad_start(struct ifaddr *ifa)
                        ifa->ifa_ifp ? ifa->ifa_ifp->if_xname : "???");
                return;
        }
-       bzero(&dp->dad_timer_ch, sizeof(dp->dad_timer_ch));
 
        TAILQ_INSERT_TAIL(&dadq, dp, dad_list);
        ip6_dad_pending++;