diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2006-09-04 12:15:12 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2006-09-04 12:15:12 +0000 |
commit | eef055db24af6968157b9d919613b4816c1815b7 (patch) | |
tree | 7d920a0c526868cf8a9e3b0fb3e46167a6a08827 /env.c | |
parent | 22d8305ecbc03fca80f80d13894809575d297a26 (diff) | |
download | fetchmail-eef055db24af6968157b9d919613b4816c1815b7.tar.gz fetchmail-eef055db24af6968157b9d919613b4816c1815b7.tar.bz2 fetchmail-eef055db24af6968157b9d919613b4816c1815b7.zip |
Avoid crash in env.c/host_fqdn if we cannot canonicalize our own hostname.
Reported by Alexander Holler.
svn path=/branches/BRANCH_6-3/; revision=4908
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 |