Browse Source

Handle no useful address types from getaddrinfo()

tags/v1.4.90
Pierre Ossman 9 years ago
parent
commit
da9a38d4e9
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      common/network/TcpSocket.cxx

+ 3
- 0
common/network/TcpSocket.cxx View File

@@ -234,6 +234,9 @@ TcpSocket::TcpSocket(const char *host, int port)
}

freeaddrinfo(ai);

if (current == NULL)
throw Exception("No useful address for host");
#endif /* HAVE_GETADDRINFO */

if (result == -1)

Loading…
Cancel
Save