Skip to content

Commit

Permalink
Don't log NULL FQDN, reported by Marc Espie.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicm committed Oct 4, 2019
1 parent 9fa75e7 commit 865318e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions fdm.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,11 @@ main(int argc, char **argv)

/* Fill the hostname. */
fill_host();
log_debug2("host is: %s %s %s",
conf.host_name, conf.host_fqdn, conf.host_address);
if (conf.host_fqdn != NULL) {
log_debug2("host is: %s %s %s", conf.host_name, conf.host_fqdn,
conf.host_address);
} else
log_debug2("host is: %s %s", conf.host_name, conf.host_address);

/* Find invoking user's details. */
if ((pw = getpwuid(getuid())) == NULL) {
Expand Down

0 comments on commit 865318e

Please sign in to comment.