Ver Fonte

Fix for -a input exceeding 384 length, increased to 4096 for searching multiple 255 legth TXT records like DKIM.

Sean Sax há 6 anos atrás
pai
commit
b37667c331
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      plugins/check_dns.c

+ 3 - 1
plugins/check_dns.c

@@ -51,7 +51,9 @@ int error_scan (char *);
 void print_help (void);
 void print_usage (void);
 
-#define ADDRESS_LENGTH 384 
+/* Allow up to 4096 input length, this is helpful
+   when the TXT records returned have multiple 255 legth values returned */
+#define ADDRESS_LENGTH 4096
 char query_address[ADDRESS_LENGTH] = "";
 char dns_server[ADDRESS_LENGTH] = "";
 char tmp_dns_server[ADDRESS_LENGTH] = "";