aboutsummaryrefslogtreecommitdiffstats
path: root/env.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-08-14 01:28:47 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-08-14 01:28:47 +0000
commitdf4a264f6a4bf53592f9e273462a8861ea7e6a6d (patch)
tree7fc180164f8bc204cea413b098a9068dbdc2c792 /env.c
parentc625d7a00b024fe5de26d16b6420abebb1db705c (diff)
downloadfetchmail-df4a264f6a4bf53592f9e273462a8861ea7e6a6d.tar.gz
fetchmail-df4a264f6a4bf53592f9e273462a8861ea7e6a6d.tar.bz2
fetchmail-df4a264f6a4bf53592f9e273462a8861ea7e6a6d.zip
Wrap getaddrinfo() and block SIGALRM where needed.
Also wrap freeaddrinfo() without added functionality. svn path=/branches/BRANCH_6-3/; revision=4895
Diffstat (limited to 'env.c')
-rw-r--r--env.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/env.c b/env.c
index 85c992c0..9b9e608c 100644
--- a/env.c
+++ b/env.c
@@ -161,7 +161,7 @@ char *host_fqdn(int required)
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags=AI_CANONNAME;
- e = getaddrinfo(tmpbuf, NULL, &hints, &res);
+ e = fm_getaddrinfo(tmpbuf, NULL, &hints, &res);
if (e) {
/* exit with error message */
fprintf(stderr,
@@ -177,7 +177,7 @@ char *host_fqdn(int required)
}
result = xstrdup(res->ai_canonname);
- freeaddrinfo(res);
+ fm_freeaddrinfo(res);
}
else
result = xstrdup(tmpbuf);