dns: check bytes length in unmarshal message

This commit is contained in:
nadoo committed 2018-08-06 08:03:07 +08:00
1 parent 5467e4bbc1
commit b27f153426
2 files changed
+9

No files matched your search

+1
View File
@@ -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)
}