CLEANUP: dns: Use DISGUISE() on a never-failing ring_attach() call
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 4 Mar 2021 15:53:27 +0000 (16:53 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 4 Mar 2021 15:53:28 +0000 (16:53 +0100)
commit1a1b674c2c0609facbbc6a54b966cf1ccd825c54
tree9b9395a7a4d44f03905bb4965dfd4d9f0be32453
parent6f69110191971ab6505ed9edb278f64d404a3a60
CLEANUP: dns: Use DISGUISE() on a never-failing ring_attach() call

When a DNS session is created, the call to ring_attach() never fails. The
ring is freshly initialized and there is other watcher on it. Thus, the call
always succeeds.

Instead of catching an error that must never happen, we use the DISGUISE()
macro to make static analyzers happy.
src/dns.c