Commit 91dbd2ef authored by Ralf Habacker's avatar Ralf Habacker

In _dbus_listen_tcp_socket() set socket family to ipv4 in unspecified case for now.

This fix is required to support at least ipv4 tcp support calling
_dbus_listen_tcp_socket() without family.

Bug: default avatarSimon McVittie <>
parent fa1ada44
......@@ -1666,7 +1666,7 @@ _dbus_listen_tcp_socket (const char *host,
_DBUS_ZERO (hints);
if (!family)
hints.ai_family = AF_UNSPEC;
hints.ai_family = AF_INET;
else if (!strcmp(family, "ipv4"))
hints.ai_family = AF_INET;
else if (!strcmp(family, "ipv6"))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment