Diff between 1722bf1258cbc82256045d576c9e26e49ea3b3d9 and 9a79c9b74a0453919ace188409cdb2396178e188

Changed Files

File Additions Deletions Status
monitor/rfcomm.c +1 -0 modified

Full Patch

diff --git a/monitor/rfcomm.c b/monitor/rfcomm.c
index 41533b1..02300a8 100644
--- a/monitor/rfcomm.c
+++ b/monitor/rfcomm.c
@@ -437,6 +437,7 @@ void rfcomm_packet(const struct l2cap_frame *frame)
 	if (frame->size < 4)
 		goto fail;
 
+	memset(&hdr, 0, sizeof(hdr));
 	if (!l2cap_frame_get_u8(l2cap_frame, &hdr.address) ||
 			!l2cap_frame_get_u8(l2cap_frame, &hdr.control) ||
 			!l2cap_frame_get_u8(l2cap_frame, &length))