diff options
Diffstat (limited to 'web/attachments/50922-check_dns.c.patch')
| -rw-r--r-- | web/attachments/50922-check_dns.c.patch | 27 |
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 | |||
