summaryrefslogtreecommitdiff
path: root/src/plugins/xfer
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2016-08-07 16:17:42 +0200
committerSébastien Helleu <flashcode@flashtux.org>2016-08-07 16:17:42 +0200
commit751769b49d7d09b21a563e3090132a7c58c4b9db (patch)
tree86f147d44e1675aa9fac83266401442e9c61b8d3 /src/plugins/xfer
parentf695a79d9b7ab2bf2709bad5fea6cc2a2d0c50c3 (diff)
downloadweechat-751769b49d7d09b21a563e3090132a7c58c4b9db.zip
core: irc, xfer: do not check return code of res_init()
If the call to res_init() fails, the connection may be OK anyway or in worst case it will fail (with an appropriate error) if the name can not be resolved.
Diffstat (limited to 'src/plugins/xfer')
-rw-r--r--src/plugins/xfer/xfer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/xfer/xfer.c b/src/plugins/xfer/xfer.c
index 7730fdf36..cef7a23e2 100644
--- a/src/plugins/xfer/xfer.c
+++ b/src/plugins/xfer/xfer.c
@@ -968,8 +968,7 @@ xfer_resolve_addr (const char *str_address, const char *str_port,
hints.ai_addr = NULL;
hints.ai_next = NULL;
- if (res_init() != 0)
- return 0;
+ res_init ();
rc = getaddrinfo (str_address, str_port, &hints, &ainfo);
if ((rc == 0) && ainfo && ainfo->ai_addr)
{