]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: dns: resolution can never be null
authorWilliam Dauchy <w.dauchy@criteo.com>
Wed, 27 Nov 2019 22:32:41 +0000 (23:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 Nov 2019 19:41:46 +0000 (20:41 +0100)
commitbe8a387e9399d0848af03401c8df80cb6ddaecfc
treefe5c74fa6ae6c21d91e7debd06d3c635c083c14e
parentb270e8166cd3433885f100f513a4af3adaca883a
CLEANUP: dns: resolution can never be null

`eb` being tested above, `res` cannot be null, so the condition is
not needed and introduces potential dead code.

also fix a typo in associated comment

This should fix issue #349

Reported-by: Ð\98лÑ\8cÑ\8f ШипиÑ\86ин <chipitsine@gmail.com>
Signed-off-by: William Dauchy <w.dauchy@criteo.com>
src/dns.c