mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
socket-client: properly handle asyncns failures
We fail to detect when people disable IPv6 in there kernels. This patch makes sure we don't ignore this error condition. http://pulseaudio.org/ticket/752 https://bugzilla.mozilla.org/show_bug.cgi?id=533470 http://bugs.freedesktop.org/show_bug.cgi?id=25742
This commit is contained in:
parent
a7c1778a68
commit
e8b83fa7c6
1 changed files with 2 additions and 1 deletions
|
|
@ -389,7 +389,8 @@ static void asyncns_cb(pa_mainloop_api*m, pa_io_event *e, int fd, pa_io_event_fl
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
if (res->ai_addr)
|
if (res->ai_addr)
|
||||||
sockaddr_prepare(c, res->ai_addr, res->ai_addrlen);
|
if (sockaddr_prepare(c, res->ai_addr, res->ai_addrlen) < 0)
|
||||||
|
goto fail;
|
||||||
|
|
||||||
asyncns_freeaddrinfo(res);
|
asyncns_freeaddrinfo(res);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue