From 5c668dc4200a0ca39c45ee6d29197b0948900d98 Mon Sep 17 00:00:00 2001 From: MichaelSweden Date: Sat, 22 Apr 2017 11:32:01 +0200 Subject: [PATCH] Removed error message while falling back to IPv4 (issue #714) --- common/os_calls.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/os_calls.c b/common/os_calls.c index ca8ab42f..524d8190 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -419,8 +419,6 @@ g_tcp_socket(void) rv = (int)socket(AF_INET6, SOCK_STREAM, 0); if (rv < 0) { - log_message(LOG_LEVEL_ERROR, "g_tcp_socket: %s", g_get_strerror()); - switch (errno) { case EAFNOSUPPORT: /* if IPv6 not supported, retry IPv4 */ @@ -429,6 +427,7 @@ g_tcp_socket(void) break; default: + log_message(LOG_LEVEL_ERROR, "g_tcp_socket: %s", g_get_strerror()); return -1; } }