diff options
Diffstat (limited to 'env.c')
-rw-r--r-- | env.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -176,7 +176,7 @@ char *host_fqdn(int required) } } - result = xstrdup(res->ai_canonname); + result = xstrdup(res->ai_canonname ? res->ai_canonname : tmpbuf); fm_freeaddrinfo(res); } else |