Usermode/wget - Passed protocol name to getaddrinfo
authorJohn Hodge <[email protected]>
Thu, 14 Jun 2012 08:49:19 +0000 (16:49 +0800)
committerJohn Hodge <[email protected]>
Thu, 14 Jun 2012 08:49:19 +0000 (16:49 +0800)
Usermode/Applications/wget_src/main.c

index 5084374..69c9ab7 100644 (file)
@@ -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 ;

UCC git Repository :: git.ucc.asn.au