diff --git a/gio/gnetworkaddress.c b/gio/gnetworkaddress.c index 7516d4ece..4f6c62308 100644 --- a/gio/gnetworkaddress.c +++ b/gio/gnetworkaddress.c @@ -254,6 +254,7 @@ g_network_address_parse_sockaddr (GNetworkAddress *addr) gchar port[32]; memset (&hints, 0, sizeof (hints)); + hints.ai_socktype = SOCK_STREAM; hints.ai_flags = AI_NUMERICHOST #ifdef AI_NUMERICSERV | AI_NUMERICSERV