blob: e1ea0215d5b5b59ffd1903a93eaf99d9f2accfc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
*** check_dns.c?rev=1.13 Wed May 21 13:09:44 2003
--- check_dns.c Wed May 21 13:13:13 2003
***************
*** 180,189 ****
}
/* compare to expected address */
! if (result == STATE_OK && match_expected_address && strcmp(address, expected_address)) {
! result = STATE_CRITICAL;
! asprintf(&output, "expected %s but got %s", expected_address, address);
}
elapsed_time = delta_time (tv);
--- 180,191 ----
}
/* compare to expected address */
! if (result == STATE_OK && match_expected_address) {
! if ((address == NULL) || strcmp(address, expected_address)) {
! result = STATE_CRITICAL;
! asprintf(&output, "expected %s but got %s", expected_address, address);
}
+ }
elapsed_time = delta_time (tv);
|