summaryrefslogtreecommitdiffstats
path: root/plugins/check_ping.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_ping.c')
-rw-r--r--plugins/check_ping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index 750b0554..9652ab7f 100644
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
@@ -109,7 +109,7 @@ main (int argc, char **argv)
109 for (i = 0 ; i < n_addresses ; i++) { 109 for (i = 0 ; i < n_addresses ; i++) {
110 110
111#ifdef PING6_COMMAND 111#ifdef PING6_COMMAND
112 if (is_inet6_addr(addresses[i]) && address_family != AF_INET) 112 if (address_family != AF_INET && is_inet6_addr(addresses[i]))
113 rawcmd = strdup(PING6_COMMAND); 113 rawcmd = strdup(PING6_COMMAND);
114 else 114 else
115 rawcmd = strdup(PING_COMMAND); 115 rawcmd = strdup(PING_COMMAND);