summaryrefslogtreecommitdiff
path: root/src/connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/connect.c')
-rw-r--r--src/connect.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/connect.c b/src/connect.c
index 661a6ba..c9dd6fb 100644
--- a/src/connect.c
+++ b/src/connect.c
@@ -54,6 +54,11 @@ as that of the covered work. */
#include <errno.h>
#include <string.h>
#include <sys/time.h>
+
+#ifdef ENABLE_IRI
+#include <idn-free.h>
+#endif
+
#include "utils.h"
#include "host.h"
#include "connect.h"
@@ -278,7 +283,7 @@ connect_to_ip (const ip_address *ip, int port, const char *print)
str = xmalloc (len);
snprintf (str, len, "%s (%s)", name, print);
str[len-1] = '\0';
- xfree (name);
+ idn_free (name);
}
logprintf (LOG_VERBOSE, _("Connecting to %s|%s|:%d... "),
@@ -366,7 +371,7 @@ connect_to_ip (const ip_address *ip, int port, const char *print)
if (sock >= 0)
fd_close (sock);
if (print)
- logprintf (LOG_VERBOSE, _("failed: %s.\n"), strerror (errno));
+ logprintf (LOG_NOTQUIET, _("failed: %s.\n"), strerror (errno));
errno = save_errno;
return -1;
}