aboutsummaryrefslogtreecommitdiffstats
path: root/socket.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 /socket.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 'socket.c')
-rw-r--r--socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/socket.c b/socket.c
index 080f1888..52e9f1cf 100644
--- a/socket.c
+++ b/socket.c
@@ -277,7 +277,7 @@ int SockOpen(const char *host, const char *service,
memset(&req, 0, sizeof(struct addrinfo));
req.ai_socktype = SOCK_STREAM;
- i = getaddrinfo(host, service, &req, ai0);
+ i = fm_getaddrinfo(host, service, &req, ai0);
if (i) {
report(stderr, GT_("getaddrinfo(\"%s\",\"%s\") error: %s\n"),
host, service, gai_strerror(i));
@@ -340,7 +340,7 @@ int SockOpen(const char *host, const char *service,
break;
}
- freeaddrinfo(*ai0);
+ fm_freeaddrinfo(*ai0);
*ai0 = NULL;
if (i == -1)