From df9a6a82700a14169cc9d0b74833f1e261b171c6 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Tue, 2 Nov 2010 11:48:20 -0700 Subject: [PATCH] Fix the DNS proxy again, for reals. me == the suck this morning Bug: 3157030 Change-Id: Ib87ed047cd6999ee3d29b392acc7a559d9bb7349 --- DnsProxyListener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DnsProxyListener.cpp b/DnsProxyListener.cpp index f40866c..36b78c8 100644 --- a/DnsProxyListener.cpp +++ b/DnsProxyListener.cpp @@ -71,7 +71,7 @@ void DnsProxyListener::GetAddrInfoHandler::run() { struct addrinfo* result = NULL; int rv = getaddrinfo(mHost, mService, mHints, &result); - bool success = mClient->sendData(&rv, sizeof(rv)); + bool success = (mClient->sendData(&rv, sizeof(rv)) == 0); if (rv == 0) { struct addrinfo* ai = result; while (ai && success) { -- 2.11.0