BUG/MINOR: dns: dns_connect_server must return -1 unsupported nameserver's type
authorEmeric Brun <ebrun@haproxy.com>
Mon, 15 Feb 2021 13:28:27 +0000 (14:28 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 15 Feb 2021 14:12:58 +0000 (15:12 +0100)
commit526b79219ecdf4154d9e79eda2c0cd3b621d622a
treea11a3d037a161445132e52ac433fef68c66def0b
parent538bb0441c7a28f27389fce957b3b337e82130d9
BUG/MINOR: dns: dns_connect_server must return -1 unsupported nameserver's type

This patch fix returns code in case of dns_connect_server is called
on unsupported type (which should not happen). Doing this we have
the warranty that after a return 0 the fd is never -1.

This patch should fix github issues #1127, #1128 and #1130
src/dns.c