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 /driver.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 'driver.c')
-rw-r--r-- | driver.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -862,11 +862,11 @@ static int do_session( sigprocmask(SIG_UNBLOCK, &allsigs, NULL); if (ai0) { - freeaddrinfo(ai0); ai0 = NULL; + fm_freeaddrinfo(ai0); ai0 = NULL; } if (ai1) { - freeaddrinfo(ai1); ai1 = NULL; + fm_freeaddrinfo(ai1); ai1 = NULL; } if (js == THROW_TIMEOUT) @@ -998,7 +998,7 @@ static int do_session( hints.ai_family = AF_UNSPEC; hints.ai_flags = AI_CANONNAME; - error = getaddrinfo(ctl->server.queryname, NULL, &hints, &res); + error = fm_getaddrinfo(ctl->server.queryname, NULL, &hints, &res); if (error) { report(stderr, @@ -1024,7 +1024,7 @@ static int do_session( ctl->server.trueaddr = (struct sockaddr *)xmalloc(res->ai_addrlen); ctl->server.trueaddr_len = res->ai_addrlen; memcpy(ctl->server.trueaddr, res->ai_addr, res->ai_addrlen); - freeaddrinfo(res); + fm_freeaddrinfo(res); } } } |