diff mbox series

[BlueZ] monitor: Fix for incorrect len in L2CAP Enhanced Connection Req

Message ID 20200528101408.98400-1-michal.narajowski@codecoup.pl (mailing list archive)
State New, archived
Headers show
Series [BlueZ] monitor: Fix for incorrect len in L2CAP Enhanced Connection Req | expand

Commit Message

MichaƂ Narajowski May 28, 2020, 10:14 a.m. UTC
---
 monitor/l2cap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

bluez.test.bot@gmail.com May 28, 2020, 10:36 a.m. UTC | #1
This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
While we are preparing for reviewing the patches, we found the following
issue/warning.

Test Result:
checkgitlint Failed

Outputs:
3: B6 Body message is missing



---
Regards,
Linux Bluetooth
diff mbox series

Patch

diff --git a/monitor/l2cap.c b/monitor/l2cap.c
index 41c766863..e571dbb61 100644
--- a/monitor/l2cap.c
+++ b/monitor/l2cap.c
@@ -1344,7 +1344,7 @@  static void sig_ecred_conn_req(const struct l2cap_frame *frame)
 	const struct bt_l2cap_pdu_ecred_conn_req *pdu = frame->data;
 	uint16_t scid;
 
-	l2cap_frame_pull((void *)frame, frame, sizeof(pdu));
+	l2cap_frame_pull((void *)frame, frame, sizeof(*pdu));
 
 	print_psm(pdu->psm);
 	print_field("MTU: %u", le16_to_cpu(pdu->mtu));