From 135c2dc14f7c417c90d78c538149f610606f89c8 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Sat, 12 Jul 2014 20:19:34 +0200 Subject: netrc: treat failure to find home dir same as missing netrc file This previously caused a fatal error (with a confusing error code, at that). Reported by: Glen A Johnson Jr. --- lib/netrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/netrc.c') diff --git a/lib/netrc.c b/lib/netrc.c index a1b00b2d6..a7a710159 100644 --- a/lib/netrc.c +++ b/lib/netrc.c @@ -88,7 +88,7 @@ int Curl_parsenetrc(const char *host, } if(!home) - return -1; + return retcode; /* no home directory found (or possibly out of memory) */ netrcfile = curl_maprintf("%s%s%s", home, DIR_CHAR, NETRC); if(home_alloc) -- cgit v1.2.3