aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-29 20:27:43 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-29 20:27:43 +0000
commit79192d39248d604f034ee8749e7724ead8618828 (patch)
tree918f398b04e6cac261fcd746a493b5c91635c63b
parent9107f6f45fe2cb1ea1e73023b8f5ef417867fd7a (diff)
downloadfetchmail-79192d39248d604f034ee8749e7724ead8618828.tar.gz
fetchmail-79192d39248d604f034ee8749e7724ead8618828.tar.bz2
fetchmail-79192d39248d604f034ee8749e7724ead8618828.zip
Don't display canonical name if it hasn't been grabbed.
svn path=/trunk/; revision=427
-rw-r--r--fetchmail.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fetchmail.c b/fetchmail.c
index bf64ed0a..2558f0b9 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -660,7 +660,8 @@ struct query *ctl; /* query parameter block */
printf("Options for retrieving from %s@%s:\n",
ctl->remotename, visbuf(ctl->servername));
#ifdef HAVE_GETHOSTBYNAME
- printf(" Canonical DNS name of server is %s.\n", ctl->canonical_name);
+ if (ctl->canonical_name)
+ printf(" Canonical DNS name of server is %s.\n", ctl->canonical_name);
#endif /* HAVE_GETHOSTBYNAME */
if (ctl->skip || outlevel == O_VERBOSE)
printf(" This host will%s be queried when no host is specified.\n",