From: Jez Austin Date: Mon, 22 Mar 2010 15:09:34 +0000 (+0100) Subject: socket-client: properly handle asyncns failures X-Git-Tag: 1.0_branch~927 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=74591da68be69f4a4853dbc1d12e7ca5fb8af4cf;p=profile%2Fivi%2Fpulseaudio.git 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 --- diff --git a/src/pulsecore/socket-client.c b/src/pulsecore/socket-client.c index ef3c29e..7c449be 100644 --- a/src/pulsecore/socket-client.c +++ b/src/pulsecore/socket-client.c @@ -387,7 +387,8 @@ static void asyncns_cb(pa_mainloop_api*m, pa_io_event *e, int fd, pa_io_event_fl goto fail; 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);