BUG/MINOR: dns: Fix check on nameserver in snr_resolution_cb
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 15 Sep 2017 09:55:45 +0000 (11:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 Sep 2017 16:42:23 +0000 (18:42 +0200)
commit3bbd65b23eba214abf07d5728fe74909fc5d286d
tree991dca53a66a6452468a617db28377688097c418
parentccbc3fd9f932958902c7ac78f95eba0badb01d57
BUG/MINOR: dns: Fix check on nameserver in snr_resolution_cb

snr_resolution_cb can be called with <nameserver> parameter set to NULL. So we
must check it before using it. This is done most of time, except when we deal
with invalid DNS response.
src/server.c