mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-19 05:45:21 +01:00
lnwire: return pointer to ErrUnknownAddrType to ensure type switch in peer.go catches it
Related to #979.
This commit is contained in:
parent
9dee2ce8f2
commit
8d71ed2f64
@ -677,7 +677,7 @@ func readElement(r io.Reader, element interface{}) error {
|
||||
continue
|
||||
|
||||
default:
|
||||
return ErrUnknownAddrType{aType}
|
||||
return &ErrUnknownAddrType{aType}
|
||||
}
|
||||
|
||||
addresses = append(addresses, address)
|
||||
|
Loading…
Reference in New Issue
Block a user