aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/netrc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/netrc.c b/lib/netrc.c
index 6271a3a2f..e656cf7c6 100644
--- a/lib/netrc.c
+++ b/lib/netrc.c
@@ -137,6 +137,10 @@ int Curl_parsenetrc(const char *host,
'password'. */
state=HOSTFOUND;
}
+ else if(Curl_raw_equal("default", tok)) {
+ state=HOSTVALID;
+ retcode=0; /* we did find our host */
+ }
break;
case HOSTFOUND:
if(Curl_raw_equal(host, tok)) {