DragonFlyBSD Kernel Audit
DF-0438 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/net/altq/altq_hfsc.c b/sys/net/altq/altq_hfsc.c
--- a/sys/net/altq/altq_hfsc.c
+++ b/sys/net/altq/altq_hfsc.c
@@ -298,6 +298,8 @@
 	struct ifaltq *ifq;
 	int error = 0;
 
+	bzero(&stats, sizeof(stats));
+
 	if (*nbytes < sizeof(stats))
 		return (EINVAL);