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:
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to