aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2011-06-07 10:35:44 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2011-06-07 10:35:44 +0300
commit57e29e69f3e9fc6030b98d01cf5a99488a686c5e (patch)
tree9cc80847d836af53ab4425330ee2034652f3ae6e
parent7f4b9eb253bfb52164a6ae0efefdcb041f71fa2f (diff)
downloadbluez-hcidump-57e29e69f3e9fc6030b98d01cf5a99488a686c5e.tar.gz
bluez-hcidump-57e29e69f3e9fc6030b98d01cf5a99488a686c5e.tar.xz
bluez-hcidump-57e29e69f3e9fc6030b98d01cf5a99488a686c5e.zip
Fix infinite loop in read by group response parsing
-rw-r--r--parser/att.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parser/att.c b/parser/att.c
index a6f42df..d9cb335 100644
--- a/parser/att.c
+++ b/parser/att.c
@@ -471,6 +471,7 @@ static void att_read_by_group_resp_dump(int level, struct frame *frm)
printf("value");
while (remaining > 0) {
printf(" 0x%2.2x", get_u8(frm));
+ remaining--;
}
printf("\n");
}