From b3c2cc7e2d5460c25d67dce68ed127c0df176da5 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 14 Jun 2012 16:49:19 +0800 Subject: [PATCH] Usermode/wget - Passed protocol name to getaddrinfo --- Usermode/Applications/wget_src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ; -- 2.20.1