fix: updated gatt library with latest fixes

This commit is contained in:
evilsocket 2019-03-29 19:52:24 +01:00
commit ec28399677
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
2 changed files with 9 additions and 2 deletions

4
Gopkg.lock generated
View file

@ -27,7 +27,7 @@
[[projects]]
branch = "master"
digest = "1:a2c142e6c2aa1c71796c748bbe42d224e23d6638fd5b3ae153e70a4b08a8da4e"
digest = "1:881bb9d751b9408f038b83e9331ce3c57603710f3546f16e7d43b5c24e974f6d"
name = "github.com/bettercap/gatt"
packages = [
".",
@ -40,7 +40,7 @@
"xpc",
]
pruneopts = "UT"
revision = "277ee0d0ef94d26e3190252c59fa34dde0df4f26"
revision = "d1a17475747afe7c0d78813596d4e95801a5d592"
[[projects]]
branch = "master"

View file

@ -1981,6 +1981,13 @@ func (a *Advertisement) unmarshall(b []byte) error {
// Utility function for creating a list of uuids.
uuidList := func(u []UUID, d []byte, w int) []UUID {
// https://github.com/bettercap/gatt/issues/8
defer func() {
if recover() != nil {
}
}()
for len(d) > 0 {
u = append(u, UUID{d[:w]})
d = d[w:]