Sfoglia il codice sorgente

Handle no useful address types from getaddrinfo()

tags/v1.4.90
Pierre Ossman 9 anni fa
parent
commit
da9a38d4e9
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3
    0
      common/network/TcpSocket.cxx

+ 3
- 0
common/network/TcpSocket.cxx Vedi 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…
Annulla
Salva