Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105778850
D33953.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
741 B
Referenced Files
None
Subscribers
None
D33953.diff
View Options
diff --git a/sys/dev/cxgbe/tom/t4_tls.c b/sys/dev/cxgbe/tom/t4_tls.c
--- a/sys/dev/cxgbe/tom/t4_tls.c
+++ b/sys/dev/cxgbe/tom/t4_tls.c
@@ -1052,6 +1052,7 @@
tgr = (struct tls_get_record *)
CMSG_DATA(mtod(control, struct cmsghdr *));
+ memset(tgr, 0, sizeof(*tgr));
tgr->tls_type = tls_hdr_pkt->type;
tgr->tls_vmajor = be16toh(tls_hdr_pkt->version) >> 8;
tgr->tls_vminor = be16toh(tls_hdr_pkt->version) & 0xff;
diff --git a/sys/kern/uipc_ktls.c b/sys/kern/uipc_ktls.c
--- a/sys/kern/uipc_ktls.c
+++ b/sys/kern/uipc_ktls.c
@@ -2066,6 +2066,7 @@
}
/* Allocate the control mbuf. */
+ memset(&tgr, 0, sizeof(tgr));
tgr.tls_type = record_type;
tgr.tls_vmajor = hdr->tls_vmajor;
tgr.tls_vminor = hdr->tls_vminor;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 1:59 PM (17 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15542005
Default Alt Text
D33953.diff (741 B)
Attached To
Mode
D33953: ktls: Zero out TLS_GET_RECORD control messages
Attached
Detach File
Event Timeline
Log In to Comment