Diff between 7d1b065ac373d8c50759560353fb1c0946b3739d and 12d72a94566b0c81a8a99d2c921384868117cc77

Changed Files

File Additions Deletions Status
mgmt/main.c +1 -1 modified

Full Patch

diff --git a/mgmt/main.c b/mgmt/main.c
index cf1f91b..45d989d 100644
--- a/mgmt/main.c
+++ b/mgmt/main.c
@@ -414,7 +414,7 @@ static int mgmt_connected(int mgmt_sk, uint16_t index,
 {
 	uint16_t eir_len;
 
-	if (len != sizeof(*ev)) {
+	if (len < sizeof(*ev)) {
 		fprintf(stderr,
 			"Invalid connected event length (%u bytes)\n", len);
 		return -EINVAL;