DragonFlyBSD Kernel Audit
DF-0010 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -683,6 +683,7 @@
 			struct cmsgcred cred;
 			struct mbuf *ncon;
 
+			bzero(&cred, sizeof(cred));
 			mp = &control;
 			while ((ncon = *mp) != NULL) {
 				cm = mtod(ncon, struct cmsghdr *);