mirror of
https://github.com/muun/recovery.git
synced 2025-11-10 14:09:50 -05:00
Release v0.3.0
This commit is contained in:
4
vendor/github.com/lightningnetwork/lnd/lnwire/lnwire.go
generated
vendored
4
vendor/github.com/lightningnetwork/lnd/lnwire/lnwire.go
generated
vendored
@@ -816,8 +816,8 @@ func ReadElement(r io.Reader, element interface{}) error {
|
||||
}
|
||||
length := binary.BigEndian.Uint16(addrLen[:])
|
||||
|
||||
var addrBytes [34]byte
|
||||
if length > 34 {
|
||||
var addrBytes [deliveryAddressMaxSize]byte
|
||||
if length > deliveryAddressMaxSize {
|
||||
return fmt.Errorf("Cannot read %d bytes into addrBytes", length)
|
||||
}
|
||||
if _, err = io.ReadFull(r, addrBytes[:length]); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user