Skip to content

Commit

Permalink
Fix for long name OutOfBounds error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Hueckstaedt committed Jul 6, 2018
1 parent 325ad41 commit 85d17d1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ static AdvertisementData parse(byte[] rawData) {
case 0x09: { // Long local name.
if (seenLongLocalName) {
// Prefer the long name over the short.
data.position(data.position() + length);
break;
}
byte[] name = new byte[length];
Expand Down

0 comments on commit 85d17d1

Please sign in to comment.