From: Jukka Rissanen Date: Mon, 17 Sep 2012 13:43:52 +0000 (+0300) Subject: dnsproxy: Remove AI_PASSIVE for connected socket X-Git-Tag: 1.8~75 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=050c33f6e0791dace69df206f1445ab8ce9ed96f;p=platform%2Fupstream%2Fconnman.git dnsproxy: Remove AI_PASSIVE for connected socket The AI_PASSIVE is useless here because the server address is always known. --- diff --git a/src/dnsproxy.c b/src/dnsproxy.c index 77106c8..719c170 100644 --- a/src/dnsproxy.c +++ b/src/dnsproxy.c @@ -2040,7 +2040,7 @@ static struct server_data *create_server(const char *interface, return NULL; } hints.ai_family = AF_UNSPEC; - hints.ai_flags = AI_PASSIVE | AI_NUMERICSERV | AI_NUMERICHOST; + hints.ai_flags = AI_NUMERICSERV | AI_NUMERICHOST; ret = getaddrinfo(server, "53", &hints, &rp); if (ret) {