:registry/mdns: fix nil pointer bug (#1818)
This commit is contained in:
parent
09ec20fded
commit
13ea0eec02
@ -120,10 +120,10 @@ func decode(record []string) (*mdnsTxt, error) {
|
||||
|
||||
br := bytes.NewReader(hr)
|
||||
zr, err := zlib.NewReader(br)
|
||||
defer zr.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer zr.Close()
|
||||
|
||||
rbuf, err := ioutil.ReadAll(zr)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user