Page 1 of 1

[Nagios-devel] check_dns segfaults when nslookup returns empty answer

Posted: Tue Dec 09, 2003 12:11 pm
by Guest
Hi!

In nagios-plugins-1.3.1:

check_dns seems to segfault when nslookup returns an empty answer, e.g. w=
hen=20
querrying a non-resolvable hostname. I know, querrying a nameserver usin=
g=20
it's hostname is probably not what one want to do, but still, it segfault=
s.

root@sentinix:/usr/local/nagios/libexec$ ./check_dns -s non_existent -H \=
=20
a.root-servers.net
Segmentation fault

nslookup directs it's error to stderr, but stdout is completely empty.

I can provide a patch for this, unless of course, anyone hasn't already=20
thought about this??!

Best regards,
--=20
Michel Blomgren
SENTINIX Project Manager
http://sentinix.org





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]