mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
dns: check bytes length in unmarshal message
This commit is contained in:
1 parent
5467e4bbc1
commit
b27f153426
2 files changed
+9
No files matched your search
@@ -134,6 +134,7 @@ func (c *Client) exchange(qname string, reqBytes []byte, preferTCP bool) (server
|
||||
if err == nil {
|
||||
break
|
||||
}
|
||||
|
||||
log.F("[dns] failed to exchange with server %v: %v", server, err)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user