diff --git a/cmd/hbcli/main.go b/cmd/hbcli/main.go index 3e153bf..a45fbe6 100644 --- a/cmd/hbcli/main.go +++ b/cmd/hbcli/main.go @@ -6,7 +6,7 @@ import ( "fmt" "io/ioutil" "os" - "pd0mz/dmr/homebrew" + "pd0mz/go-dmr/homebrew" "gopkg.in/yaml.v2" ) diff --git a/cmd/ipsccli/main.go b/cmd/ipsccli/main.go index 5fc443e..f1a388e 100644 --- a/cmd/ipsccli/main.go +++ b/cmd/ipsccli/main.go @@ -4,7 +4,7 @@ import ( "flag" "io/ioutil" "os" - "pd0mz/dmr/ipsc" + "pd0mz/go-dmr/ipsc" "gopkg.in/yaml.v2" ) diff --git a/homebrew/homebrew.go b/homebrew/homebrew.go index 8dc6f4e..a2065a4 100644 --- a/homebrew/homebrew.go +++ b/homebrew/homebrew.go @@ -389,8 +389,11 @@ func (l *Link) parse(addr *net.UDPAddr, data []byte) { } case authDone: + if len(data) < 4 { + return + } switch { - case bytes.Equal(data, DMRData): + case bytes.Equal(data[:4], DMRData): if l.stream == nil { return }