diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2006-08-14 01:28:47 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2006-08-14 01:28:47 +0000 |
commit | df4a264f6a4bf53592f9e273462a8861ea7e6a6d (patch) | |
tree | 7fc180164f8bc204cea413b098a9068dbdc2c792 /socket.c | |
parent | c625d7a00b024fe5de26d16b6420abebb1db705c (diff) | |
download | fetchmail-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |