mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 16:48:49 -05:00
netrc: Return the correct error code when out of memory
Introduced in 763c5178
.
Closes #4036
This commit is contained in:
parent
7fb54ef89b
commit
6c2f9bea70
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user