Move memset under ifdef INET6.

MFH:		1 month
Reported by:	bz
This commit is contained in:
ae 2014-10-14 14:41:06 +00:00
parent c699449b21
commit b92a2b74c4

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: