From: dlg Date: Sat, 27 Feb 2021 09:21:22 +0000 (+0000) Subject: trim some code i accidentally left into the nvgre add address function X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=71ec1a99d05ff0ab8e5f8e703d5640a36ace4bb5;p=openbsd trim some code i accidentally left into the nvgre add address function --- diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c index 92961320193..4a07a1746d6 100644 --- a/sys/net/if_gre.c +++ b/sys/net/if_gre.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_gre.c,v 1.169 2021/02/27 09:20:38 dlg Exp $ */ +/* $OpenBSD: if_gre.c,v 1.170 2021/02/27 09:21:22 dlg Exp $ */ /* $NetBSD: if_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */ /* @@ -3590,9 +3590,6 @@ nvgre_add_addr(struct nvgre_softc *sc, const struct ifbareq *ifba) endpoint.in4 = sin->sin_addr; break; - memset(sin6, 0, sizeof(*sin6)); - sin6->sin6_family = AF_INET6; - sin6->sin6_len = sizeof(*sin6); #ifdef INET6 case AF_INET6: