mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 13:09:49 -07:00
misc: updated gatt library to fix an invalid memory access bug
This commit is contained in:
parent
9aaa13b6f6
commit
1a6faa9f66
2 changed files with 9 additions and 6 deletions
4
Gopkg.lock
generated
4
Gopkg.lock
generated
|
@ -27,7 +27,7 @@
|
|||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
digest = "1:881bb9d751b9408f038b83e9331ce3c57603710f3546f16e7d43b5c24e974f6d"
|
||||
digest = "1:67f303802ce14d56880d9f2142adc00511441f0fcf7b7fd4ad5856e234963f15"
|
||||
name = "github.com/bettercap/gatt"
|
||||
packages = [
|
||||
".",
|
||||
|
@ -40,7 +40,7 @@
|
|||
"xpc",
|
||||
]
|
||||
pruneopts = "UT"
|
||||
revision = "d1a17475747afe7c0d78813596d4e95801a5d592"
|
||||
revision = "fac16c0ad797bbccae1fe4acf49761b98f7516e7"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
|
|
5
vendor/github.com/bettercap/gatt/linux/hci.go
generated
vendored
5
vendor/github.com/bettercap/gatt/linux/hci.go
generated
vendored
|
@ -359,10 +359,13 @@ func (h *HCI) handleConnection(b []byte) {
|
|||
return
|
||||
}
|
||||
h.plistmu.Lock()
|
||||
pd := h.plist[ep.PeerAddress]
|
||||
if pd := h.plist[ep.PeerAddress]; pd != nil {
|
||||
h.plistmu.Unlock()
|
||||
pd.Conn = c
|
||||
h.AcceptSlaveHandler(pd)
|
||||
} else {
|
||||
log.Printf("HCI: can't find data for %v", ep.PeerAddress)
|
||||
}
|
||||
}
|
||||
|
||||
func (h *HCI) handleDisconnectionComplete(b []byte) error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue