diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-02-22 21:53:05 +0100 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-02-22 21:53:05 +0100 |
commit | cca2b319234d3bfb30dbeb9fba714ded06c4827f (patch) | |
tree | 6cf2024d6497c80c56d4a198794b7b4c0d573063 /plugins | |
parent | 8dc6bc64280c1e30c457840ee0180c43d29bae7f (diff) | |
parent | d44b8d70a446e708cfd69a64f505fdf9193a412e (diff) | |
download | monitoring-plugins-cca2b319234d3bfb30dbeb9fba714ded06c4827f.tar.gz |
Merge branch 'pr/1404'
* pr/1404:
DNS is case insensitive!
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_dns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c index d6bd2c0f..48601f02 100644 --- a/plugins/check_dns.c +++ b/plugins/check_dns.c | |||
@@ -127,7 +127,7 @@ main (int argc, char **argv) | |||
127 | if (verbose) | 127 | if (verbose) |
128 | puts(chld_out.line[i]); | 128 | puts(chld_out.line[i]); |
129 | 129 | ||
130 | if (strstr (chld_out.line[i], ".in-addr.arpa")) { | 130 | if (strcasestr (chld_out.line[i], ".in-addr.arpa")) { |
131 | if ((temp_buffer = strstr (chld_out.line[i], "name = "))) | 131 | if ((temp_buffer = strstr (chld_out.line[i], "name = "))) |
132 | addresses[n_addresses++] = strdup (temp_buffer + 7); | 132 | addresses[n_addresses++] = strdup (temp_buffer + 7); |
133 | else { | 133 | else { |