diff options
author | Jacob Hansen <jhansen@op5.com> | 2018-12-06 15:33:34 +0000 |
---|---|---|
committer | Jacob Hansen <jhansen@op5.com> | 2018-12-07 09:51:21 +0000 |
commit | 0882b4201bfa0608b90448c4866b571a20e1fd66 (patch) | |
tree | 1de258e676765c7b895c7e73b4aebc526ca09511 /lib/tests/test_opts3.c | |
parent | e5eccb663efb40c010ed608f5900b341592cfa68 (diff) | |
download | monitoring-plugins-0882b4201bfa0608b90448c4866b571a20e1fd66.tar.gz |
check_icmp: Correctly set address_family on lookup
If a hostname is supplied instead of an IP address, the automatic
address family detection would fail to correctly set the IP protocol
version (it would always be IPv6).
We now supply AF_UNSPEC to getaddrinfo, which should then return the
correct address family in the result.
Signed-off-by: Jacob Hansen <jhansen@op5.com>
Diffstat (limited to 'lib/tests/test_opts3.c')
0 files changed, 0 insertions, 0 deletions