]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/net/pf_table.c
xnu-6153.11.26.tar.gz
[apple/xnu.git] / bsd / net / pf_table.c
index c66741be2f74ee2588720148b141eb3b2c0a0980..2d172aacc57f7b5cf66c1fafda0c1974074aea21 100644 (file)
@@ -1199,13 +1199,10 @@ pfr_walktree(struct radix_node *rn, void *arg)
                if (w->pfrw_free-- > 0) {
                        struct pfr_astats as;
 
+                       bzero(&as, sizeof(as));
+
                        pfr_copyout_addr(&as.pfras_a, ke);
 
-#if !defined(__LP64__)
-                       /* Initialized to avoid potential info leak to
-                        * userspace */
-                       as._pad = 0;
-#endif
                        bcopy(ke->pfrke_packets, as.pfras_packets,
                            sizeof(as.pfras_packets));
                        bcopy(ke->pfrke_bytes, as.pfras_bytes,