Explorar o código

Merge pull request #389 from BornToBeRoot/maint

check_dns: make reverse (PTR) check case insensitive
Bryan Heden %!s(int64=7) %!d(string=hai) anos
pai
achega
162accf829
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plugins/check_dns.c

+ 1 - 1
plugins/check_dns.c

@@ -288,7 +288,7 @@ main (int argc, char **argv)
     temp_buffer = "";
     for (i=0; i<expected_address_cnt; i++) {
       /* check if we get a match and prepare an error string */
-      if (strcmp(address, expected_address[i]) == 0) result = STATE_OK;
+      if (strcasecmp(address, expected_address[i]) == 0) result = STATE_OK;
       xasprintf(&temp_buffer, "%s%s; ", temp_buffer, expected_address[i]);
     }
     if (result == STATE_CRITICAL) {