⬢ DragonFlyBSD Kernel Audit
DF-3504 / fix.diff
← back to finding ↓ download raw
--- a/sys/netgraph7/ksocket/ng_ksocket.h
+++ b/sys/netgraph7/ksocket/ng_ksocket.h
@@ -74,7 +74,8 @@
 /* For NGM_KSOCKET_ACCEPT control message responses */
 struct ng_ksocket_accept {
 	u_int32_t	nodeid;		/* node ID of connected ksocket */
-	struct sockaddr	addr;		/* peer's address (variable length) */
+	struct sockaddr_storage addr;	/* peer's address (was: struct sockaddr
+					   while bcopy writes sa_len bytes) */
 };
 
 /* Keep this in sync with the above structure definition */