1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Move memset under ifdef INET6.

MFH:		1 month
Reported by:	bz
This commit is contained in:
Andrey V. Elsukov 2014-10-14 14:41:06 +00:00
parent 917256cd36
commit 138d56556c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=273090

View File

@ -918,9 +918,9 @@ gif_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
(struct sockaddr *)sin6);
if (error == 0)
error = sa6_recoverscope(sin6);
#endif
if (error != 0)
memset(sin6, 0, sizeof(*sin6));
#endif
}
break;
case GIFGOPTS: