From: John Hodge Date: Thu, 14 Jun 2012 08:49:19 +0000 (+0800) Subject: Usermode/wget - Passed protocol name to getaddrinfo X-Git-Tag: rel0.15~611^2~54 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=b3c2cc7e2d5460c25d67dce68ed127c0df176da5;p=tpg%2Facess2.git Usermode/wget - Passed protocol name to getaddrinfo --- diff --git a/Usermode/Applications/wget_src/main.c b/Usermode/Applications/wget_src/main.c index 50843745..69c9ab71 100644 --- a/Usermode/Applications/wget_src/main.c +++ b/Usermode/Applications/wget_src/main.c @@ -84,7 +84,7 @@ int main(int argc, char *argv[]) continue ; } - rv = getaddrinfo(uri->Host, NULL, NULL, &addrinfo); + rv = getaddrinfo(uri->Host, "http", NULL, &addrinfo); if( rv != 0 ) { fprintf(stderr, "Unable to resolve %s: %s\n", uri->Host, gai_strerror(rv)); continue ;