svn commit: r273090 - head/sys/net

Andrey V. Elsukov ae at FreeBSD.org
Tue Oct 14 14:41:07 UTC 2014


Author: ae
Date: Tue Oct 14 14:41:06 2014
New Revision: 273090
URL: https://svnweb.freebsd.org/changeset/base/273090

Log:
  Move memset under ifdef INET6.
  
  MFH:		1 month
  Reported by:	bz

Modified:
  head/sys/net/if_gif.c

Modified: head/sys/net/if_gif.c
==============================================================================
--- head/sys/net/if_gif.c	Tue Oct 14 14:32:58 2014	(r273089)
+++ head/sys/net/if_gif.c	Tue Oct 14 14:41:06 2014	(r273090)
@@ -918,9 +918,9 @@ gif_ioctl(struct ifnet *ifp, u_long cmd,
 			    (struct sockaddr *)sin6);
 			if (error == 0)
 				error = sa6_recoverscope(sin6);
-#endif
 			if (error != 0)
 				memset(sin6, 0, sizeof(*sin6));
+#endif
 		}
 		break;
 	case GIFGOPTS:


More information about the svn-src-all mailing list