lnwire: return pointer to ErrUnknownAddrType to ensure type switch in peer.go catches it

Related to #979.
This commit is contained in:
Olaoluwa Osuntokun 2018-03-30 14:25:48 -07:00
parent 9dee2ce8f2
commit 8d71ed2f64
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

@ -677,7 +677,7 @@ func readElement(r io.Reader, element interface{}) error {
continue
default:
return ErrUnknownAddrType{aType}
return &ErrUnknownAddrType{aType}
}
addresses = append(addresses, address)