Skip to content

Commit

Permalink
Adding missing err check
Browse files Browse the repository at this point in the history
  • Loading branch information
Mzack9999 committed Mar 2, 2022
1 parent 3ce99ec commit 63c6d2f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client.go
Expand Up @@ -262,7 +262,10 @@ func (c *Client) QueryMultiple(host string, requestTypes []uint16) (*DNSData, er

// https://github.com/projectdiscovery/retryabledns/issues/25
if resp.Truncated && c.TCPFallback {
resp, _, _ = c.tcpClient.Exchange(msg, resolver.String())
resp, _, err = c.tcpClient.Exchange(msg, resolver.String())
if err != nil || resp == nil {
continue
}
}

err = dnsdata.ParseFromMsg(resp)
Expand Down

0 comments on commit 63c6d2f

Please sign in to comment.