From d837d751bc84acfb5d1acaee460ebc1b4d72f942 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 26 Oct 2009 21:17:13 +0000 Subject: [PATCH] Don't print an rDNS record if it is blank. --- output.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/output.cc b/output.cc index 6ee307457..1703c9f10 100644 --- a/output.cc +++ b/output.cc @@ -1428,6 +1428,7 @@ void write_host_header(Target *currenths) { write_host_status(currenths, o.resolve_all); /* Print reverse DNS if it differs. */ if (currenths->TargetName() != NULL + && currenths->HostName() != NULL && currenths->HostName()[0] != '\0' && strcmp(currenths->TargetName(), currenths->HostName()) != 0) { log_write(LOG_PLAIN, "rDNS record for %s: %s\n", currenths->targetipstr(), currenths->HostName());