aboutsummaryrefslogtreecommitdiffstats
path: root/servport.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 /servport.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 'servport.c')
-rw-r--r--servport.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/servport.c b/servport.c
index 2849f7c2..0a12c640 100644
--- a/servport.c
+++ b/servport.c
@@ -48,7 +48,7 @@ int servport(const char *service) {
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
hints.ai_protocol = IPPROTO_TCP;
- e = getaddrinfo(NULL, service, &hints, &res);
+ e = fm_getaddrinfo(NULL, service, &hints, &res);
if (e) {
report(stderr, GT_("getaddrinfo(NULL, \"%s\") error: %s\n"),
service, gai_strerror(e));
@@ -64,10 +64,10 @@ int servport(const char *service) {
break;
#endif
default:
- freeaddrinfo(res);
+ fm_freeaddrinfo(res);
goto err;
}
- freeaddrinfo(res);
+ fm_freeaddrinfo(res);
}
} else {
if (u == 0 || u > 65535)