[Nagiosplug-devel] check_dns.c: Requires DNS server (patch)

Subhendu Ghosh sghosh at sghosh.org
Tue Feb 4 17:37:08 CET 2003


attached patch??? ;)

On Tue, 4 Feb 2003, Steve Bonds wrote:

> The help text for the check_dns.c plugin says that the DNS server is
> optional, yet the program logic found on line 366 of the current CVS
> version requires the server to be specified.
> 
> ----
> if (dns_server[0] == 0) {
> 	if (is_host (argv[c]) == FALSE) {
> 		printf ("Invalid name/address: %s\n\n", argv[c]);
> 		return ERROR;
> 	}
> -----
> 
> (If unspecified, dns_server is null at that point, triggering an "Invalid
> name/address".  It's better than the last beta version at least, as that
> one coredumps on me from utils.c.  ;-)
> 
> The attached patch corrects the documentation so that it says the server
> is required.
> 
>   -- Steve
> 

-- 






More information about the Devel mailing list