mirror of https://github.com/moparisthebest/curl
Set errno = ENOMEM on faild countcheck().
This commit is contained in:
parent
c98676068e
commit
9deb76ce3e
|
@ -95,6 +95,7 @@ static bool countcheck(const char *func, int line, const char *source)
|
||||||
if(source)
|
if(source)
|
||||||
fprintf(stderr, "LIMIT %s:%d %s reached memlimit\n",
|
fprintf(stderr, "LIMIT %s:%d %s reached memlimit\n",
|
||||||
source, line, func);
|
source, line, func);
|
||||||
|
errno = ENOMEM;
|
||||||
return TRUE; /* RETURN ERROR! */
|
return TRUE; /* RETURN ERROR! */
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue