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