DataDog / agent-payload

Payload format description for communication between the agent and the Datadog backend
BSD 3-Clause "New" or "Revised" License
21 stars 19 forks source link

[backend] Modify domain name length error #254

Closed AyyLam closed 1 year ago

AyyLam commented 1 year ago

What does this PR do?

This PR adds more clarity to the error message for when the domain name length is 0 and when integer overflow happens.

Also helps distinguish it from another conditional currently with the same error message: https://github.com/DataDog/agent-payload/blob/280a475c6e833b7537e477025c60ef01044756f6/process/dns_v2.go#L326-L327

Reviewer's Checklist

Reviewers: please see the review guidelines