summaryrefslogtreecommitdiffstats
path: root/web/attachments/50922-check_dns.c.patch
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
commit0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch)
tree1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/50922-check_dns.c.patch
downloadsite-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files.
Diffstat (limited to 'web/attachments/50922-check_dns.c.patch')
-rw-r--r--web/attachments/50922-check_dns.c.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/web/attachments/50922-check_dns.c.patch b/web/attachments/50922-check_dns.c.patch
new file mode 100644
index 0000000..e1ea021
--- /dev/null
+++ b/web/attachments/50922-check_dns.c.patch
@@ -0,0 +1,27 @@
1*** check_dns.c?rev=1.13 Wed May 21 13:09:44 2003
2--- check_dns.c Wed May 21 13:13:13 2003
3***************
4*** 180,189 ****
5 }
6
7 /* compare to expected address */
8! if (result == STATE_OK && match_expected_address && strcmp(address, expected_address)) {
9! result = STATE_CRITICAL;
10! asprintf(&output, "expected %s but got %s", expected_address, address);
11 }
12
13 elapsed_time = delta_time (tv);
14
15--- 180,191 ----
16 }
17
18 /* compare to expected address */
19! if (result == STATE_OK && match_expected_address) {
20! if ((address == NULL) || strcmp(address, expected_address)) {
21! result = STATE_CRITICAL;
22! asprintf(&output, "expected %s but got %s", expected_address, address);
23 }
24+ }
25
26 elapsed_time = delta_time (tv);
27