diff options
author | Steve Holme <steve_holme@hotmail.com> | 2019-06-17 23:01:49 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2019-06-18 21:00:43 +0100 |
commit | 6c2f9bea70b928067b854f0a17981e3da0c65aeb (patch) | |
tree | 2a2a7a005cf28dc332beecca816a8b011a631c91 | |
parent | 7fb54ef89b3e4a5e86b29f78325dea5fadbf124e (diff) | |
download | curl-6c2f9bea70b928067b854f0a17981e3da0c65aeb.tar.gz |
netrc: Return the correct error code when out of memory
Introduced in 763c5178.
Closes #4036
-rw-r--r-- | lib/netrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/netrc.c b/lib/netrc.c index 1bd998f9c..f41636e97 100644 --- a/lib/netrc.c +++ b/lib/netrc.c @@ -89,7 +89,7 @@ int Curl_parsenetrc(const char *host, && pw_res) { home = strdup(pw.pw_dir); if(!home) - return CURLE_OUT_OF_MEMORY; + return -1; home_alloc = TRUE; } #elif defined(HAVE_GETPWUID) && defined(HAVE_GETEUID) |